Re: PL/pgSQL support to define multi variables once - Mailing list pgsql-hackers

From Quan Zongliang
Subject Re: PL/pgSQL support to define multi variables once
Date
Msg-id 539AB1C2.5050009@gmail.com
Whole thread Raw
In response to Re: PL/pgSQL support to define multi variables once  (Ian Barwick <ian@2ndquadrant.com>)
List 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 by date:

Previous
From: Kyotaro HORIGUCHI
Date:
Subject: pg_resetxlog to clear backup start/end locations.
Next
From: Andres Freund
Date:
Subject: Re: Few observations in replication slots related code