Re: PL/pgSQL support to define multi variables once

Поиск
Список
Период
Сортировка
От Quan Zongliang
Тема Re: PL/pgSQL support to define multi variables once
Дата
Msg-id 539AB1C2.5050009@gmail.com
обсуждение исходный текст
Ответ на Re: PL/pgSQL support to define multi variables once  (Ian Barwick <ian@2ndquadrant.com>)
Список pgsql-hackers
On 06/13/2014 03:42 PM, Ian Barwick wrote:
> Hi
>
> On 14/06/13 16:20, Quan Zongliang wrote:
>> Hi all,
>>
>> Please find the attachment.
>>
>> By my friend asking, for convenience,
>> support to define multi variables in single PL/pgSQL line.
>>
>> Like this:
>>
>> CREATE OR REPLACE FUNCTION try_mutlivardef() RETURNS text AS $$
>> DECLARE
>> local_a, local_b, local_c text := 'a1----';
>> BEGIN
>> return local_a || local_b || local_c;
>> end;
>> $$ LANGUAGE plpgsql;
>
> Please submit this patch to the current commitfest:
>
>    https://commitfest.postgresql.org/action/commitfest_view?id=22
>
>
> Regards
>
> Ian Barwick
>
>
submitted
https://commitfest.postgresql.org/action/patch_view?id=1475


---
此电子邮件没有病毒和恶意软件,因为 avast! 防病毒保护处于活动状态。
http://www.avast.com




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

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: pg_resetxlog to clear backup start/end locations.
Следующее
От: Andres Freund
Дата:
Сообщение: Re: Few observations in replication slots related code