Re: Common Table Expressions applied; some issues remain - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Common Table Expressions applied; some issues remain
Date
Msg-id 7826.1243431873@sss.pgh.pa.us
Whole thread Raw
In response to Re: Common Table Expressions applied; some issues remain  (Greg Stark <stark@enterprisedb.com>)
List pgsql-hackers
Greg Stark <stark@enterprisedb.com> writes:
> On Wed, May 27, 2009 at 12:47 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> I'm not too thrilled about that solution because it still eliminates
>> predictability of execution of volatile functions.

> How so? It means the volatile function might only be executed for the
> matching rows

Exactly.  If the point of the CTE is to ensure that nextval() is
executed N times, and it actually gets executed less than that,
then we've broken the semantics in a visible way.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: survey of WAL blocksize changes
Next
From: Simon Riggs
Date:
Subject: Re: Synchronous replication: Promotion of Standby to Primary