Re: Functions with more than 32 parameters

From: David Fetter <david(at)fetter(dot)org>
To: Oisin Glynn <me(at)oisinglynn(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Functions with more than 32 parameters
Date: 2005-02-10 18:07:50
Message-ID: 20050210180750.GE22824@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 09, 2005 at 10:11:19PM -0500, Oisin Glynn wrote:
> Hi,
>
> I am trying to keep database access encapsulated in functions from an
> insert and update point of view so as all of the applications writing to
> the database are using the same functions/statements.
>
> My problem is I was creating functions to do inserts/updates and now I have
> a table with more than 32 columns and the functions seem to only want to
> have 32 parameters?
>
> Is there any way around this?

Short of recompiling as others have suggested, you could put large #
of params into an array and have the function unwind that.

Cheers,
D
--
David Fetter david(at)fetter(dot)org http://fetter.org/
phone: +1 510 893 6100 mobile: +1 415 235 3778

Remember to vote!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Christoph Pingel 2005-02-10 18:38:55 Re: no self-joins in views?
Previous Message Richard Huxton 2005-02-10 17:51:52 Re: no self-joins in views?