Re: function_name.parameter_name - Mailing list pgsql-hackers

From David E. Wheeler
Subject Re: function_name.parameter_name
Date
Msg-id 7EE1912B-B72C-47EA-87F5-FF286A1008E1@pgexperts.com
Whole thread Raw
In response to Re: function_name.parameter_name  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sep 7, 2010, at 9:35 AM, Tom Lane wrote:

> How does $subject differ from what we already do?  See
> http://www.postgresql.org/docs/9.0/static/plpgsql-structure.html
> particularly this:
>
>     Note: There is actually a hidden "outer block" surrounding the
>     body of any PL/pgSQL function. This block provides the
>     declarations of the function's parameters (if any), as well as
>     some special variables such as FOUND (see Section 39.5.5). The
>     outer block is labeled with the function's name, meaning that
>     parameters and special variables can be qualified with the
>     function's name.

Well I'll be damned. I never knew about this! So I can get rid of those aliases!
 http://github.com/theory/pgxn-manager/commit/e5add190ff5358a0b2ede64b62616491be454c50

Thanks Tom, I had *no idea* about this.

Best,

David



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: function_name.parameter_name
Next
From: Heikki Linnakangas
Date:
Subject: Re: patch: tsearch - some memory diet