]> granicus.if.org Git - postgresql/commit
Fix ruleutils' get_variable() to print something useful for Vars referencing
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Jul 2010 21:11:47 +0000 (21:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Jul 2010 21:11:47 +0000 (21:11 +0000)
commit2b8a624596179efc3605cef4c80ba9fcea75c21c
tree682ad84108f11565bae6c06b29925d4f968003bc
parenta0d7c5f6894fd1402c7cae8ebc23c4265265919c
Fix ruleutils' get_variable() to print something useful for Vars referencing
resjunk outputs of subquery tlists, instead of throwing an error.  Per bug
#5548 from Daniel Grace.

We might at some point find we ought to back-patch this further than 9.0,
but I think that such Vars can only occur as resjunk members of upper-level
tlists, in which case the problem can't arise because prior versions didn't
print resjunk tlist items in EXPLAIN VERBOSE.
src/backend/utils/adt/ruleutils.c