Skip to content

Commit 56e985d

Browse files
committed
Include resjunk columns in EXPLAIN VERBOSE output lists. Per discussion.
1 parent 1710800 commit 56e985d

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/backend/commands/explain.c

Lines changed: 3 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.189 2009/08/10 05:46:50 tgl Exp $
10+
* $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.190 2009/08/22 02:06:32 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1134,17 +1134,15 @@ show_plan_tlist(Plan *plan, ExplainState *es)
11341134
es->pstmt->subplans);
11351135
useprefix = list_length(es->rtable) > 1;
11361136

1137-
/* Deparse each non-junk result column */
1137+
/* Deparse each result column (we now include resjunk ones) */
11381138
i = 0;
11391139
foreach(lc, plan->targetlist)
11401140
{
11411141
TargetEntry *tle = (TargetEntry *) lfirst(lc);
11421142

1143-
if (tle->resjunk)
1144-
continue;
11451143
result = lappend(result,
11461144
deparse_expression((Node *) tle->expr, context,
1147-
useprefix, false));
1145+
useprefix, false));
11481146
}
11491147

11501148
/* Print results */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy