Skip site navigation (1) Skip section navigation (2)

Re: function_name.parameter_name

From: "David E(dot) Wheeler" <david(dot)wheeler(at)pgexperts(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: function_name.parameter_name
Date: 2010-09-07 16:39:49
Message-ID: (view raw or whole thread)
Lists: pgsql-hackers
On Sep 7, 2010, at 9:35 AM, Tom Lane wrote:

> How does $subject differ from what we already do?  See
> 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!

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



In response to

pgsql-hackers by date

Next:From: Pavel StehuleDate: 2010-09-07 16:42:07
Subject: Re: patch: tsearch - some memory diet
Previous:From: Tom LaneDate: 2010-09-07 16:35:41
Subject: Re: function_name.parameter_name

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group