Re: How to Recompile Postgreqsl to increase Function-argument

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: How to Recompile Postgreqsl to increase Function-argument
Дата
Msg-id 200204151943.g3FJhpd14076@candle.pha.pa.us
обсуждение исходный текст
Ответ на How to Recompile Postgreqsl to increase Function-argument limit??  (tarabas@tarabas.de (Manuel))
Список 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 по дате отправления:

Предыдущее
От: "PG Explorer"
Дата:
Сообщение: Re: using CAST and LIKE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: using CAST and LIKE