From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal - using names as primary names of plpgsql function parameters instead $ based names |
Date: | 2017-05-15 18:34:36 |
Message-ID: | CAFj8pRDntU2nph=gqkMcdTXZ4x0hKOPA74-=d9ZvMQsCESVfsg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2017-05-13 18:26 GMT+02:00 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>:
> Hi
>
> Now, I when I working on plpgsql_check, I have to check function
> parameters. I can use fn_vargargnos and out_param_varno for list of
> arguments and related varno(s). when I detect some issue, I am using
> refname. It is not too nice now, because these refnames are $ based. Long
> names are alias only. There are not a possibility to find related alias.
>
> So, my proposal. Now, we can use names as refname of parameter variable. $
> based name can be used as alias. From user perspective there are not any
> change.
>
> Comments, notes?
>
here is a patch
Regards
Pavel
>
> Regards
>
> Pavel
>
Attachment | Content-Type | Size |
---|---|---|
psql-named-arguments | application/octet-stream | 1.3 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2017-05-15 18:37:02 | Re: transition table behavior with inheritance appears broken (was: Declarative partitioning - another take) |
Previous Message | Tom Lane | 2017-05-15 18:28:17 | Re: [bug fix] PG10: libpq doesn't connect to alternative hosts when some errors occur |