]> granicus.if.org Git - postgresql/commit
Make SubPlan nodes carry the result's typmod as well as datatype OID. This is
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Mar 2009 22:09:26 +0000 (22:09 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Mar 2009 22:09:26 +0000 (22:09 +0000)
commitdcf3902f02db09a067f066bd46bc3ad354f323b9
treea315476b4728f96646d4dfef5ce7edaad2e22f94
parent4886dc92e0a45e50600187e7ff8e289e14ded5ca
Make SubPlan nodes carry the result's typmod as well as datatype OID.  This is
for consistency with the (relatively) recent addition of typmod to SubLink.
An example of why it's a good idea is to be seen in the recent "failed to
locate grouping columns" bug, which wouldn't have happened if a SubPlan
exposed the same typmod info as the SubLink it was derived from.

This could be back-patched, since it doesn't affect any on-disk data format,
but for the moment it doesn't seem necessary to do so.
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/nodeFuncs.c
src/backend/nodes/outfuncs.c
src/backend/optimizer/plan/subselect.c
src/include/nodes/primnodes.h