Re: PL/pgSQL PERFORM with CTE

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: PL/pgSQL PERFORM with CTE
Дата
Msg-id F83E76D3-7715-4358-82AD-5706E43EC64D@justatheory.com
обсуждение исходный текст
Ответ на Re: PL/pgSQL PERFORM with CTE  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: PL/pgSQL PERFORM with CTE
Список pgsql-hackers
On Aug 20, 2013, at 2:41 PM, Pavel Stehule <pavel.stehule@gmail.com> wrote:

> yes, in this context you should not use a PERFORM
>
> PL/pgSQL protect you before useless queries - so you can use a CTE without returned result directly or CTE with
resultvia PERFORM statement (and in this case it must be unmodifing CTE). 
>
> Sorry, I don't see any problem - why you return some from CTE and then you throw this result?

I am passing the values returned from a CTE to a call to pg_notify(). I do not care to collect the output of
pg_notify(),which returns VOID. 

Best,

David




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: PL/pgSQL PERFORM with CTE
Следующее
От: Boszormenyi Zoltan
Дата:
Сообщение: Re: PL/pgSQL PERFORM with CTE