Include resjunk columns in EXPLAIN VERBOSE output lists. Per discussion.
authorTom Lane <[email protected]>
Sat, 22 Aug 2009 02:06:32 +0000 (02:06 +0000)
committerTom Lane <[email protected]>
Sat, 22 Aug 2009 02:06:32 +0000 (02:06 +0000)
src/backend/commands/explain.c

index 2ccce9c10482e5b4f05c86f5d8a42a3225860adf..c4fa17c622a35d8ff883681d8b6d24dc2a7d3c3c 100644 (file)
@@ -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 */