Re: AW: SQL99 functions

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: Zeugswetter Andreas SB <ZeugswetterA(at)wien(dot)spardat(dot)at>
Cc: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Hackers List <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: AW: SQL99 functions
Date: 2000-06-27 15:07:31
Message-ID: 3958C333.1195DC21@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> > > create function foo (out int) returns int as ...;
> > > select foo(x) from t1;
> > > will give two columns for the result.
> > You've *got* to be kidding.
> > To name just one problem with that, where do I put an AS to relabel
> > the extra column?
> It gets the name of the variable ( here "out"), no way to rename it,
> but no problem since you can name the variable however you like.

Actually, there is a third (optional) field which is the variable name:

create function foo (out pname int) returns int as ...;

Not sure what it should default to if the name is not specified.

- Thomas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Philip Warner 2000-06-27 15:08:03 Re: AW: Proposal: More flexible backup/restore via pg_dump
Previous Message Zeugswetter Andreas SB 2000-06-27 14:53:30 AW: SQL99 functions