Re: SOMAXCONN (was Re: Solaris source code) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: SOMAXCONN (was Re: Solaris source code)
Date
Msg-id 11658.994801643@sss.pgh.pa.us
Whole thread Raw
List pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I was thinking:

>     #if SOMAXCONN >= 1000
>     #define PG_SOMAXCONN SOMAXCONN
>     #else
>     #define PG_SOMAXCONN 1000
>     #endif

Not in config.h, you don't.  Unless you want <sys/socket.h> (or
whichever header defines SOMAXCONN; how consistent is that across
platforms, anyway?) to be included by everything in the system ...
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SOMAXCONN (was Re: Solaris source code)
Next
From: Vince Vielhaber
Date:
Subject: Re: grant and SQL92