]> granicus.if.org Git - postgresql/commit
Fix order of shutdown processing when CTEs contain inter-references.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Feb 2011 04:53:34 +0000 (23:53 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 26 Feb 2011 04:53:34 +0000 (23:53 -0500)
commit000128bc7f591025d0c1ce539bb53c6ad00ab69c
tree8fc01820c448c8ad7ebfe0bd836ff97be74f3f44
parent389af951552ff2209eae3e62fa147fef12329d4f
Fix order of shutdown processing when CTEs contain inter-references.

We need ExecutorEnd to run the ModifyTable nodes to completion in
reverse order of initialization, not forward order.  Easily done
by constructing the list back-to-front.
src/backend/executor/nodeModifyTable.c
src/test/regress/expected/with.out
src/test/regress/sql/with.sql