Re: How to share the result data of separated plan

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

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Hitoshi Harada <umi.tanuki@gmail.com>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2010-11-07T16:23:46Z
Lists: pgsql-hackers
Hitoshi Harada <umi.tanuki@gmail.com> writes:
> Up to now, in a portal we only have multiple plans that share nothing
> but relations, then executor starts, runs and ends separately.
> Writeable CTEs need the result tuplestore of separated plans that were
> executed before main query .

Um ... why?  I thought the whole point of breaking out ModifyTable
as a separate node type was so that a query involving writeable CTEs
would still be just one plan tree.

			regards, tom lane