Thread: How to Recompile Postgreqsl to increase Function-argument limit??
How to Recompile Postgreqsl to increase Function-argument limit??
From
tarabas@tarabas.de (Manuel)
Date:
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 ! Please Cc an answer to my email tarabas@tarabas.de ! Thanx in advance ... Manuel ...
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