Implement getpeereid() as a src/port compatibility function.

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

Commit: 3980f7fc6ecb75952ebe76c3d30ec6731728098d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-06-02T17:05:01Z
Releases: 9.1.0
Implement getpeereid() as a src/port compatibility function.

This unifies a bunch of ugly #ifdef's in one place.  Per discussion,
we only need this where HAVE_UNIX_SOCKETS, so no need to cover Windows.

Marko Kreen, some adjustment by Tom Lane

Files

PathChange+/−
configure modified +3 −3
configure.in modified +2 −2
src/backend/libpq/auth.c modified +11 −77
src/include/port.h modified +4 −0
src/interfaces/libpq/fe-connect.c modified +10 −76
src/port/getpeereid.c added +80 −0