pgsql: Implement getpeereid() as a src/port compatibility function.
pgsql: Implement getpeereid() as a src/port compatibility function.
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
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(-)