Check for out-of-range varoattno in deparse_context_for_subplan.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jul 2005 18:40:20 +0000 (18:40 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jul 2005 18:40:20 +0000 (18:40 +0000)
commit123e25b3a3bb5413d9ab5daf017b26859fc713ed
tree3ba14e35cb0458520bec29dae174849c1a9c7d89
parent1e31942a3317b1a31c90c5e6ab6ef3b8760f1063
Check for out-of-range varoattno in deparse_context_for_subplan.
I have seen this case in CVS tip due to new "physical tlist" optimization
for subqueries.  I believe it probably can't happen in existing releases,
but the check is not going to hurt anything, so backpatch to 8.0 just
in case.
src/backend/utils/adt/ruleutils.c