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: 7EE1912B-B72C-47EA-87F5-FF286A1008E1@pgexperts.com (view raw or flat)
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
> 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


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-2014 The PostgreSQL Global Development Group