Re: more than 32 parameters to a function? - Mailing list pgsql-general

From David Fetter
Subject Re: more than 32 parameters to a function?
Date
Msg-id 20061026182743.GD13440@fetter.org
Whole thread Raw
In response to more than 32 parameters to a function?  (Ottavio Campana <ottavio@campana.vi.it>)
List pgsql-general
On Thu, Oct 26, 2006 at 10:03:27AM -0700, Ottavio Campana wrote:
> I'm writing some stored procedures in pl/pgsql for a database using
> postgresql 7.4.7.
>
> I need to write a complex function with 65 arguments, but when I try
> to run it I get an error complaining that arguments can be up to 32.
>
> Is there a way to solve this problem or do I have to try to split
> the function into three new ones?

You can pass the function one complex type that has as many parts as
you like.  Or several complex types if that makes more sense.

Cheers,
D
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

pgsql-general by date:

Previous
From: Vivek Khera
Date:
Subject: Re: Monitoring Postgres - Get the SQL queries which are sent to postgres
Next
From: Tom Lane
Date:
Subject: Re: more than 32 parameters to a function?