Re: WIP: default values for function parameters - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WIP: default values for function parameters
Date
Msg-id 3568.1228929848@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> look again
> select c as foo from tab ...
> select fce(c as foo) from tab ...

> when you use AS as param names specification, you change meaning of
> some construct via used context?

Uh, what's your point?  AS changes the meaning too.  For example in

select foo, bar from (select c as foo, d as bar from ...) ss;

we are using AS to specify the names seen by the outer select.
This seems to me to be quite a close parallel to attaching names
to function parameters.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: cvs head initdb hangs on unixware
Next
From: "Pavel Stehule"
Date:
Subject: Re: WIP: default values for function parameters