Re: Strange order of execution with rule

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: Strange order of execution with rule
Дата
Msg-id
21258.1129904630@sss.pgh.pa.us
Ответ на
Re: Strange order of execution with rule (han.holl@informationslogik.nl)
Список
Дерево обсуждения
Strange order of execution with rule han.holl@informationslogik.nl
Re: Strange order of execution with rule Tom Lane <tgl@sss.pgh.pa.us>
Re: Strange order of execution with rule han.holl@informationslogik.nl
Re: Strange order of execution with rule han.holl@informationslogik.nl
Re: Strange order of execution with rule Tom Lane <tgl@sss.pgh.pa.us>
han.holl@informationslogik.nl writes:
> On Thursday 20 October 2005 23:48, Tom Lane wrote:
>> Give us a test case to demonstrate this assertion.  It works as expected
>> AFAICT.

> Ok, it has to do with C functions:

> create or replace function plg_cfie() returns void as '/tmp/plg_cfie.so' 
> language c immutable; 

You should not declare a function "immutable" if it has side effects
(such as emitting a message).  That entitles the planner to pre-evaluate
the function at plan time, which is evidently what's happening here.

			regards, tom lane
В списке pgsql-general по дате отправления
От: Tino Wildenhain
Дата:
Сообщение: Re: PSQL suggested enhancement
От: Alex Turner
Дата:
FAQ