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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Implement getpeereid() as a src/port compatibility function.
Date: 2011-06-02 17:05:16
Message-ID: E1QSBKe-00042x-2Y@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-06-02 17:30:57 pgsql: Avoid creating init fork for unlogged indexes when it already ex
Previous Message Tom Lane 2011-06-01 21:02:19 pgsql: Allow hash joins to be interrupted while searching hash table fo