pgsql: Implement getpeereid() as a src/port compatibility function. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Implement getpeereid() as a src/port compatibility function.
Date
Msg-id E1QSBKe-00042x-2Y@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/3980f7fc6ecb75952ebe76c3d30ec6731728098d

Modified Files
--------------
configure                         |    6 +-
configure.in                      |    4 +-
src/backend/libpq/auth.c          |   88 +++++--------------------------------
src/include/port.h                |    4 ++
src/interfaces/libpq/fe-connect.c |   86 ++++--------------------------------
src/port/getpeereid.c             |   80 +++++++++++++++++++++++++++++++++
6 files changed, 110 insertions(+), 158 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Allow hash joins to be interrupted while searching hash table fo
Next
From: Tom Lane
Date:
Subject: pgsql: Typo fix.