Re: How to Recompile Postgreqsl to increase Function-argument - Mailing list pgsql-general

From Bruce Momjian
Subject Re: How to Recompile Postgreqsl to increase Function-argument
Date
Msg-id 200204151943.g3FJhpd14076@candle.pha.pa.us
Whole thread Raw
In response to How to Recompile Postgreqsl to increase Function-argument limit??  (tarabas@tarabas.de (Manuel))
List 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@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: "PG Explorer"
Date:
Subject: Re: using CAST and LIKE
Next
From: Tom Lane
Date:
Subject: Re: using CAST and LIKE