Fix order of shutdown processing when CTEs contain inter-references.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 000128bc7f591025d0c1ce539bb53c6ad00ab69c
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-02-26T04:53:34Z
Releases: 9.1.0
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.

Files