Re: setof or array as input parameter to postgresql 8.2 functions - Mailing list pgsql-sql

From Jyoti Seth
Subject Re: setof or array as input parameter to postgresql 8.2 functions
Date
Msg-id 003401c7ae49$d21007a0$763016e0$@com
Whole thread Raw
In response to Re: setof or array as input parameter to postgresql 8.2 functions  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: setof or array as input parameter to postgresql 8.2 functions
List pgsql-sql
Thanks a lot.

Regards,
Jyoti

-----Original Message-----
From: Pavel Stehule [mailto:pavel.stehule@gmail.com]
Sent: Thursday, June 14, 2007 11:27 AM
To: Jyoti Seth
Cc: pgsql-general@postgresql.org; pgsql-sql@postgresql.org
Subject: Re: [SQL] setof or array as input parameter to postgresql 8.2
functions

2007/6/14, Jyoti Seth <jyotiseth2001@gmail.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


pgsql-sql by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: setof or array as input parameter to postgresql 8.2 functions
Next
From: "Ashish Karalkar"
Date:
Subject: function to find difference between in days between two dates