Re: Common Table Expressions applied; some issues remain

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Common Table Expressions applied; some issues remain
Дата
Msg-id 7826.1243431873@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Common Table Expressions applied; some issues remain  (Greg Stark <stark@enterprisedb.com>)
Список 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 по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: survey of WAL blocksize changes
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Synchronous replication: Promotion of Standby to Primary