> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Could we test SOMAXCONN and set PG_SOMAXCONN to 1000 only if SOMAXCONN1
> > is less than 1000?
>
> Why bother?
>
> If you've got some plausible scenario where 1000 is too small, we could
> just as easily make it 10000. I don't see the need for yet another
> configure test for this.
I was thinking:
#if SOMAXCONN >= 1000#define PG_SOMAXCONN SOMAXCONN#else#define PG_SOMAXCONN 1000#endif
-- 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,
Pennsylvania19026