From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Michael Nolan <htfoot(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Declaring a field that is also an out parameter in a function |
Date: | 2024-07-07 14:42:07 |
Message-ID: | CAFj8pRCMpZ-pn8v_U316X=rKvPCg1nbe+_aKpj0qPUGy8fiqfw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
ne 7. 7. 2024 v 15:01 odesílatel Michael Nolan <htfoot(at)gmail(dot)com> napsal:
> On Sun, Jul 7, 2024 at 4:13 AM Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
> >
> > but looks so there are false alarms related to using an alias. It is
> interesting so I have not any report about this issue, so probably using
> aliases is not too common today.
>
> I'm not sure why there's a warning about using an alias. 43.3.1 says
> to use them for improved readability.
>
it is obsolete - aliases were used when Postgres doesn't support named
arguments.
I don't know any good reason why one variable can use more than one name.
There can be an exception when argument names are very long, but generally
they are not used.
>
> Mike Nolan
>
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2024-07-07 14:47:15 | Re: Declaring a field that is also an out parameter in a function |
Previous Message | Tom Lane | 2024-07-07 14:37:47 | Re: Declaring a field that is also an out parameter in a function |