]> granicus.if.org Git - postgresql/commit
Fix corner case wherein a WorkTableScan node could get initialized before the
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Oct 2008 00:41:41 +0000 (00:41 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 13 Oct 2008 00:41:41 +0000 (00:41 +0000)
commit0a7abcd4c983e25a4efb46a4a4942aef92c70338
tree8ea9e19ad9c81d4d4fda8b9460b30275011554dc
parent100aa2795de4488f12098308133fa7d73a5007eb
Fix corner case wherein a WorkTableScan node could get initialized before the
RecursiveUnion to which it refers.  It turns out that we can just postpone the
relevant initialization steps until the first exec call for the node, by which
time the ancestor node must surely be initialized.  Per report from Greg Stark.
src/backend/executor/nodeWorktablescan.c
src/test/regress/expected/with.out
src/test/regress/sql/with.sql