Re: PL/pgSQL: #option select_into_1_row (was SELECT INTO

Поиск
Список
Период
Сортировка
От Matt Miller
Тема Re: PL/pgSQL: #option select_into_1_row (was SELECT INTO
Дата
Msg-id 1123599690.3231.4.camel@dbamm01-linux
обсуждение исходный текст
Ответ на Re: PL/pgSQL: SELECT INTO EXACT  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: PL/pgSQL: #option select_into_1_row (was SELECT INTO  (Matt Miller <mattm@epx.com>)
Re: PL/pgSQL: #option select_into_1_row (was SELECT INTO  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-patches
On Mon, 2005-08-08 at 17:18 -0400, Tom Lane wrote:
> If you think that this should be a global option instead of a
> per-statement one, something like the (undocumented) #option hack might
> be a good way to specify it; that would give it per-function scope,
> which seems reasonable.
>
>     create function myfn(...) returns ... as $$
>         #option select_into_1_row
>         declare ...
>     $$ language plpgsql;

Attached is a patch that implements the "#option select_into_1_row"
directive as suggested.

Is it time to document this directive?

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fix oversight in pts_error_callback()
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] O_DIRECT for WAL writes