Content-Length: 292634 | pFad | http://github.com/postgrespro/postgres/commit/56e985d02eb2940904bc9e881d251b692b93afc6

EE Include resjunk columns in EXPLAIN VERBOSE output lists. Per discuss… · postgrespro/postgres@56e985d · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/56e985d02eb2940904bc9e881d251b692b93afc6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy