Re: [SQL] setof or array as input parameter to postgresql 8.2 functions

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Manso Gomez, Ramon" <rmgomez(at)indra(dot)es>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-sql(at)postgresql(dot)org
Subject: Re: [SQL] setof or array as input parameter to postgresql 8.2 functions
Date: 2007-06-14 07:41:29
Message-ID: 162867790706140041r7593b868s34f82d1c7fadb7ea@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

visit http://www.postgresql.org/community/lists/subscribe

2007/6/14, Manso Gomez, Ramon <rmgomez(at)indra(dot)es>:
> How can delete my suscription to this forums?
>
> -----Mensaje original-----
> De: pgsql-sql-owner(at)postgresql(dot)org
> [mailto:pgsql-sql-owner(at)postgresql(dot)org] En nombre de Jyoti Seth
> Enviado el: jueves, 14 de junio de 2007 8:04
> Para: 'Pavel Stehule'
> CC: pgsql-general(at)postgresql(dot)org; pgsql-sql(at)postgresql(dot)org
> Asunto: Re: [SQL] setof or array as input parameter to postgresql 8.2
> functions
>
> Thanks a lot.
>
> Regards,
> Jyoti
>
> -----Original Message-----
> From: Pavel Stehule [mailto:pavel(dot)stehule(at)gmail(dot)com]
> Sent: Thursday, June 14, 2007 11:27 AM
> To: Jyoti Seth
> Cc: pgsql-general(at)postgresql(dot)org; pgsql-sql(at)postgresql(dot)org
> Subject: Re: [SQL] setof or array as input parameter to postgresql 8.2
> functions
>
> 2007/6/14, Jyoti Seth <jyotiseth2001(at)gmail(dot)com>:
> > Thanks for the solution. With this I am able to pass arrays and
> > multidimensional arrays in postgresql functions.
> >
> > One of my problem is still left I want to pass set of values with
> different
> > datatypes.For eg:
> > I want to pass following values to the function:
> > 1 ajay 1000.12
> > 2 rita 2300.24
> > 3 leena 1230.78
> > 4 jaya 3432.45
> >
> > As the values have different data types I have to create three
> > different arrays. Is there any way with which I can pass this as a
> > single setof values.
> >
> >
>
> You have to wait for 8.3 where arrays on composite types are supported.
> Currently in one our application we use array of arrays where different
> types are too, and we cast it to text.
>
> Regards
> Pavel
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Albe Laurenz 2007-06-14 08:15:40 Re: Regular expressions in procs
Previous Message Pavel Stehule 2007-06-14 07:39:31 Re: function to find difference between in days between two dates

Browse pgsql-sql by date

  From Date Subject
Next Message Martijn van Oosterhout 2007-06-14 11:14:03 Re: [SQL] function to find difference between in days between two dates
Previous Message Pavel Stehule 2007-06-14 07:39:31 Re: function to find difference between in days between two dates