From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Bruno BAGUETTE <pgsql-ml(at)baguette(dot)net> |
Cc: | "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: RE : Is the use of array as PL/PGSQL function arguments |
Date: | 2003-10-09 23:41:35 |
Message-ID: | 200310092341.h99NfZ420238@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Added to TODO:
o Allow PL/pgSQL to handle %TYPE arrays, e.g. tab.col%TYPE[]
---------------------------------------------------------------------------
Bruno BAGUETTE wrote:
> > > CREATE OR REPLACE FUNCTION myownfunction(members.id%TYPE[],
> > > events.id%TYPE) RETURNS BOOLEAN AS '
> >
> > You can certainly use arrays as arguments, but I don't think
> > you can combine %TYPE with [] like that.
>
> Thanks Tom for the information ! :-)
>
> When I create functions with %TYPE, PostgreSQL replies that it will
> convert the %TYPE with a VARCHAR (for example). So it could replace a
> %TYPE[] by a VARCHAR[] (in my example) ?
>
> It seems that this modification could be done easily, I will try to find
> in the source code to create this patch. (Without any warranties, I
> never done a patch for PostgreSQL).
>
> In the meantime, is it possible to add this feature in the TODO list ?
>
> Regards,
>
> ---------------------------------------
> Bruno BAGUETTE - pgsql-ml(at)baguette(dot)net
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2003-10-09 23:46:57 | Re: undefined reference to 'pg_detoast_datum' |
Previous Message | Patrick Hatcher | 2003-10-09 23:36:13 | process hangs using perl? |