Instead of believing SOMAXCONN from the system header files (which is
Tom Lane <tgl@sss.pgh.pa.us>
Instead of believing SOMAXCONN from the system header files (which is a lie on many Unixen), invoke listen() with MIN(MaxBackends*2, 10000). The clamp value 10000 is configurable in config.h.in, if that proves to be necessary --- hopefully it won't.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/libpq/pqcomm.c | modified | +21 −7 |
| src/include/config.h.in | modified | +11 −1 |