Re: wCTE behaviour - Mailing list pgsql-hackers

From Marko Tiikkaja
Subject Re: wCTE behaviour
Date
Msg-id 4CE0255A.100@cs.helsinki.fi
Whole thread Raw
In response to Re: wCTE behaviour  (Marko Tiikkaja <marko.tiikkaja@cs.helsinki.fi>)
Responses Re: wCTE behaviour
List pgsql-hackers
On 2010-11-14 8:01 PM +0200, I wrote:
> In my opinion, all of these should have the same effect: DELETE all rows
> from "foo".

Since the example wasn't entirely clear on this one: in my opinion the 
DML should also only be executed once.  So:

WITH t AS (INSERT INTO foo VALUES (0) RETURNING *)
SELECT 1 FROM t t1, t t2;

would only insert one row in any case.


Regards,
Marko Tiikkaja


pgsql-hackers by date:

Previous
From: Marko Tiikkaja
Date:
Subject: Re: wCTE behaviour
Next
From: Marti Raudsepp
Date:
Subject: Re: Bug in plpython's Python Generators