Re: How to Recompile Postgreqsl to increase Function-argument

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Manuel <tarabas(at)tarabas(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to Recompile Postgreqsl to increase Function-argument
Date: 2002-04-15 19:43:51
Message-ID: 200204151943.g3FJhpd14076@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Manuel wrote:
> Hi!
>
> I read that by recompiling postgresql I can increase the limit
> of arguments (16 by deafult) for Functions (PLpgsql).
>
> How do I have to recompile ?! Do I have to change a file or just
> add an argument when recompiling ??
>
> Where can i find this limit so I can increase it to ~40 since
> i have one function with ~36 arguments to do an insert for me
> and return the inserted id.
>
> I would really appreciate any help !

You need to edit pg_config.h or edit pg_config.h.in and rerun configure.
Change INDEX_MAX_KEYS to 40 or so and recompile/initdb. 7.3 will have a
configure flag to do this.

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2002-04-15 19:46:28 Re: using CAST and LIKE
Previous Message PG Explorer 2002-04-15 19:35:29 Re: using CAST and LIKE