Re: Declaring a field that is also an out parameter in a function - Mailing list pgsql-general

From Pavel Stehule
Subject Re: Declaring a field that is also an out parameter in a function
Date
Msg-id CAFj8pRCMpZ-pn8v_U316X=rKvPCg1nbe+_aKpj0qPUGy8fiqfw@mail.gmail.com
Whole thread Raw
In response to Re: Declaring a field that is also an out parameter in a function  (Michael Nolan <htfoot@gmail.com>)
Responses Re: Declaring a field that is also an out parameter in a function
List pgsql-general


ne 7. 7. 2024 v 15:01 odesílatel Michael Nolan <htfoot@gmail.com> napsal:
On Sun, Jul 7, 2024 at 4:13 AM Pavel Stehule <pavel.stehule@gmail.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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Declaring a field that is also an out parameter in a function
Next
From: "David G. Johnston"
Date:
Subject: Re: Declaring a field that is also an out parameter in a function