Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitabc6441

Browse files
committed
Remove unnecessary use of index_open just to get the index name.
1 parentbb6a788 commitabc6441

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

‎src/backend/commands/explain.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1994-5, Regents of the University of California
88
*
99
* IDENTIFICATION
10-
* $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.126 2004/09/13 20:06:28 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.127 2004/09/30 17:42:42 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -502,13 +502,12 @@ explain_outNode(StringInfo str,
502502
i=0;
503503
foreach(l, ((IndexScan*)plan)->indxid)
504504
{
505-
Relationrelation;
505+
char*indname;
506506

507-
relation=index_open(lfirst_oid(l));
507+
indname=get_rel_name(lfirst_oid(l));
508508
appendStringInfo(str,"%s%s",
509509
(++i>1) ?", " :"",
510-
quote_identifier(RelationGetRelationName(relation)));
511-
index_close(relation);
510+
quote_identifier(indname));
512511
}
513512
/* FALL THRU */
514513
caseT_SeqScan:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp