diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-30 17:42:42 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-09-30 17:42:42 +0000 |
commit | abc6441d606968d298c95a43618d79e18e68dba9 (patch) | |
tree | 6c774c647eccdc55709fcb19a27fdb15df01f1c2 /src/backend/commands/explain.c | |
parent | bb6a78829e96eada7242e748e0ca1348b27b3413 (diff) | |
download | postgresql-abc6441d606968d298c95a43618d79e18e68dba9.tar.gz postgresql-abc6441d606968d298c95a43618d79e18e68dba9.zip |
Remove unnecessary use of index_open just to get the index name.
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r-- | src/backend/commands/explain.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index f51b991b4d0..34f6aa51f78 100644 --- a/src/backend/commands/explain.c +++ b/src/backend/commands/explain.c @@ -7,7 +7,7 @@ * Portions Copyright (c) 1994-5, Regents of the University of California * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.126 2004/09/13 20:06:28 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.127 2004/09/30 17:42:42 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -502,13 +502,12 @@ explain_outNode(StringInfo str, i = 0; foreach(l, ((IndexScan *) plan)->indxid) { - Relation relation; + char *indname; - relation = index_open(lfirst_oid(l)); + indname = get_rel_name(lfirst_oid(l)); appendStringInfo(str, "%s%s", (++i > 1) ? ", " : "", - quote_identifier(RelationGetRelationName(relation))); - index_close(relation); + quote_identifier(indname)); } /* FALL THRU */ case T_SeqScan: |