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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix order of shutdown processing when CTEs contain inter-referen
Date: 2011-02-26 04:54:07
Message-ID: E1PtCAR-0004Wa-JN@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2011-02-26 06:56:49 pgsql: Document pg_options_to_table() (not previously documented)
Previous Message Tom Lane 2011-02-25 23:58:26 pgsql: Support data-modifying commands (INSERT/UPDATE/DELETE) in WITH.