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

From: "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com>
To: "Jyoti Seth" <jyotiseth2001(at)gmail(dot)com>
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 05:57:08
Message-ID: 162867790706132257v53da9fb7raebee4f4ed50e00e@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jyoti Seth 2007-06-14 06:04:03 Re: [SQL] setof or array as input parameter to postgresql 8.2 functions
Previous Message Jyoti Seth 2007-06-14 05:47:27 Re: [SQL] setof or array as input parameter to postgresql 8.2 functions

Browse pgsql-sql by date

  From Date Subject
Next Message Jyoti Seth 2007-06-14 06:04:03 Re: [SQL] setof or array as input parameter to postgresql 8.2 functions
Previous Message Jyoti Seth 2007-06-14 05:47:27 Re: [SQL] setof or array as input parameter to postgresql 8.2 functions