Skip site navigation (1) Skip section navigation (2)

Re: EXPLAIN doesn't show sufficient info for wCTE cases

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: EXPLAIN doesn't show sufficient info for wCTE cases
Date: 2011-02-28 19:54:28
Message-ID: 28752.1298922868@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
David Fetter <david(at)fetter(dot)org> writes:
> On Mon, Feb 28, 2011 at 11:44:06AM -0500, Robert Haas wrote:
>> I think it's good to include the table name, for sure.  I *think* I
>> agree that it isn't necessary to include the child names.

> Would this affect the use case of breaking up a too-long table into
> partitions?

> WITH f AS (
>     DELETE FROM ONLY foo
>     WHERE foo_ts >= '2011-01-01' AND foo_ts < '2011-02-01'
>     RETURNING *
> )
> INSERT INTO foo_201101
> SELECT * FROM f;

In that example, each ModifyTable node is constrained to a single
target table, so I'm not sure what your point is.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Simon RiggsDate: 2011-02-28 19:57:09
Subject: Re: Sync Rep v17
Previous:From: Peter EisentrautDate: 2011-02-28 19:52:42
Subject: Re: pl/python do not delete function arguments

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group