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-13 12:55:13
Message-ID: 162867790706130555r5a1ba9cbq1c3e2cb0f1adbda7@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-sql

Hello

maybe:

create function foo(varchar[][]) returns void as $$ begin end$$
language plpgsql;

postgres=# select foo(array[array[1,2], array[2,2]]::varchar[][]);
foo
-----

(1 row)

Regards
Pavel Stehule

2007/6/13, Jyoti Seth <jyotiseth2001(at)gmail(dot)com>:
>
>
>
>
> Hi,
>
>
>
> I have to pass a set of values and arrays in postgresql 8.2 functions. But I
> am not getting any help on that. Please let me know if any one has idea.
>
>
>
> Thanks,
>
> Jyoti

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Johannes Konert 2007-06-13 13:00:14 pg_xlog - files are guaranteed to be sequentialy named?
Previous Message g.hintermayer 2007-06-13 12:35:51 Re: Apparent Wraparound?

Browse pgsql-sql by date

  From Date Subject
Next Message Albe Laurenz 2007-06-13 13:09:56 Re: setof or array as input parameter to postgresql 8.2 functions
Previous Message Jyoti Seth 2007-06-13 11:57:09 setof or array as input parameter to postgresql 8.2 functions