Use poll(2) in preference to select(2), if available. This solves

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1d57374114dadd83bb8428dfa841312568ef3cc4
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2003-03-06T03:16:55Z
Releases: 7.4.1
Use poll(2) in preference to select(2), if available.  This solves
problems in applications that may have a large number of files open,
such that libpq's socket number exceeds the range supported by fd_set.
From Chris Brown.

Files

PathChange+/−
configure modified +5 −2
configure.in modified +3 −3
src/include/pg_config.h.in modified +13 −4
src/interfaces/libpq/fe-misc.c modified +146 −116