"Jasen Betts" <jasen(at)treshna(dot)com> writes:
> libpq creates sockets to the server without CLOEXEC.
Only if you have a very broken build; see fe-connect.c around line 1160
(in CVS HEAD, but the fcntl() has been there for many years).
Perhaps what you really meant to say is "for some reason the fcntl
call isn't getting compiled in on my platform", but with no platform
details it's impossible for us to do anything about that.
regards, tom lane