1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-15 19:21:59 +03:00

Make Gather node projection-capable.

The original Gather code failed to mark a Gather node as not able to
do projection, but it couldn't, even though it did call initialize its
projection info via ExecAssignProjectionInfo.  There doesn't seem to
be any good reason for this node not to have projection capability,
so clean things up so that it does.  Without this, plans using Gather
nodes might need to carry extra Result nodes to do projection.
This commit is contained in:
Robert Haas
2015-10-28 00:27:58 +01:00
parent c15898c1d5
commit 8538a63070
3 changed files with 75 additions and 18 deletions

View File

@ -602,12 +602,15 @@ set_plan_refs(PlannerInfo *root, Plan *plan, int rtoffset)
set_join_references(root, (Join *) plan, rtoffset);
break;
case T_Gather:
set_upper_references(root, plan, rtoffset);
break;
case T_Hash:
case T_Material:
case T_Sort:
case T_Unique:
case T_SetOp:
case T_Gather:
/*
* These plan types don't actually bother to evaluate their