Re: Found small issue with OUT params - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Found small issue with OUT params
Date
Msg-id 200509290221.j8T2L0311481@candle.pha.pa.us
Whole thread Raw
In response to Re: Found small issue with OUT params  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Tony Caduto <tony_caduto@amsoftwaredesign.com> writes:
> > Please don't take this the wrong way, but don't you think even if a 
> > single param is declared as OUT it should return the name of the OUT param?
> 
> Not really, because "create function foo (in x int, out y float)" is
> supposed to have the same external behavior as "create function foo
> (in x int) returns float".  I agree it's a bit of a judgment call, but
> I do not see a case for changing it.

I am agreeing with the poster that use of OUT should always print the
out parameter name.  Is there a downside to doing that?  Seems it gives
people an option.

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: "Jonah H. Harris"
Date:
Subject: Re: [DOCS] Added documentation about caching, reliability
Next
From: Tom Lane
Date:
Subject: Re: Open items list for 8.1