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
Files
| Path | Change | +/− |
|---|---|---|
| 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 |