]> 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:57 +0000 (21:11 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 9 Jul 2010 21:11:57 +0000 (21:11 +0000)
commite5b8e868cd3b59660490b660627bdc1507fdda86
tree25333f3031d7963a28cb16239a8005aacf1d3002
parentbeed55dff7e39553db94a8760862b5d8a3a92f4a
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