pull_up_subqueries() should copy the subquery before starting to modify
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Oct 2003 23:48:16 +0000 (23:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Oct 2003 23:48:16 +0000 (23:48 +0000)
commita75e4fb5390dccca0b96fcf0f2f23c4b411ba35b
treefec408518f48c84a9c855cf56032f98094d21149
parent9326d265853ea00d8abae8dd78c341e1e61baaeb
pull_up_subqueries() should copy the subquery before starting to modify
it.  Not sure why I'd thought it would be a good idea to do differently
way back when, but Greg Stark exposed the folly of doing so ...
src/backend/optimizer/prep/prepjointree.c