Check for out-of-range varoattno in deparse_context_for_subplan.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jul 2005 18:39:59 +0000 (18:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 15 Jul 2005 18:39:59 +0000 (18:39 +0000)
commit184ba4d5ede1cef4eec2ec1c17e363fc3c1d84d0
treeb1423b700772372ab57e36b58910c57998746506
parent0182951bc86e3ce6f8386c24829c0a5931d5124b
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