pgsql: Fix order of shutdown processing when CTEs contain inter-referen - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix order of shutdown processing when CTEs contain inter-referen
Date
Msg-id E1PtCAR-0004Wa-JN@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/000128bc7f591025d0c1ce539bb53c6ad00ab69c

Modified Files
--------------
src/backend/executor/nodeModifyTable.c |    9 +++-
src/test/regress/expected/with.out     |   76 ++++++++++++++++++++++++++++++++
src/test/regress/sql/with.sql          |   26 +++++++++++
3 files changed, 108 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Support data-modifying commands (INSERT/UPDATE/DELETE) in WITH.
Next
From: Bruce Momjian
Date:
Subject: pgsql: Document pg_options_to_table() (not previously documented)