diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-22 02:06:32 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2009-08-22 02:06:32 +0000 |
commit | 56e985d02eb2940904bc9e881d251b692b93afc6 (patch) | |
tree | 0fb43269bbed76e5b3ac446954aebcdb4dd023fc /src/backend/commands/explain.c | |
parent | 1710800813df5563b50a95c0d9a2253b73b6f16a (diff) | |
download | postgresql-56e985d02eb2940904bc9e881d251b692b93afc6.tar.gz postgresql-56e985d02eb2940904bc9e881d251b692b93afc6.zip |
Include resjunk columns in EXPLAIN VERBOSE output lists. Per discussion.
Diffstat (limited to 'src/backend/commands/explain.c')
-rw-r--r-- | src/backend/commands/explain.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backend/commands/explain.c b/src/backend/commands/explain.c index d675d8d8171..ef3d9beb062 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.189 2009/08/10 05:46:50 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/explain.c,v 1.190 2009/08/22 02:06:32 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1134,17 +1134,15 @@ show_plan_tlist(Plan *plan, ExplainState *es) es->pstmt->subplans); useprefix = list_length(es->rtable) > 1; - /* Deparse each non-junk result column */ + /* Deparse each result column (we now include resjunk ones) */ i = 0; foreach(lc, plan->targetlist) { TargetEntry *tle = (TargetEntry *) lfirst(lc); - if (tle->resjunk) - continue; result = lappend(result, deparse_expression((Node *) tle->expr, context, - useprefix, false)); + useprefix, false)); } /* Print results */ |