postgresql/src/include
Peter Eisentraut f14413b684 Sort out getpeereid() and peer auth handling on Windows
The getpeereid() uses have so far been protected by HAVE_UNIX_SOCKETS,
so they didn't ever care about Windows support.  But in anticipation
of Unix-domain socket support on Windows, that needs to be handled
differently.

Windows doesn't support getpeereid() at this time, so we use the
existing not-supported code path.  We let configure do its usual thing
of picking up the replacement from libpgport, instead of the custom
overrides that it was doing before.

But then Windows doesn't have struct passwd, so this patch sprinkles
some additional #ifdef WIN32 around to make it work.  This is similar
to existing code that deals with this issue.

Reviewed-by: Andrew Dunstan <andrew.dunstan@2ndquadrant.com>
Discussion: https://www.postgresql.org/message-id/5974caea-1267-7708-40f2-6009a9d653b0@2ndquadrant.com
2019-12-16 09:36:08 +01:00
..
access Remove XLogFileNameP() from the tree 2019-12-03 15:06:04 +09:00
bootstrap Remove more unreferenced function declarations 2019-07-07 09:58:33 +09:00
catalog Fix misbehavior with expression indexes on ON COMMIT DELETE ROWS tables. 2019-12-01 13:09:26 -05:00
commands Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
common Offer pnstrdup to frontend code 2019-12-04 19:36:06 -03:00
datatype Update copyright for 2019 2019-01-02 12:44:25 -05:00
executor Minor comment improvements for instrumentation.h 2019-12-05 07:56:29 -05:00
fe_utils Refactor query cancellation code into src/fe_utils/ 2019-12-02 11:18:56 +09:00
foreign Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
jit Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
lib Add reusable routine for making arrays unique. 2019-11-07 17:00:48 +13:00
libpq In the postmaster, rely on the signal infrastructure to block signals. 2019-10-13 15:48:26 -04:00
mb Add backend-only appendStringInfoStringQuoted 2019-12-10 17:12:56 -03:00
nodes Prevent overly-aggressive collapsing of joins to RTE_RESULT relations. 2019-12-14 13:49:15 -05:00
optimizer Generate EquivalenceClass members for partitionwise child join rels. 2019-11-05 11:42:24 -05:00
parser Require the schema qualification in pg_temp.type_name(arg). 2019-08-05 07:48:41 -07:00
partitioning Improve pruning of a default partition 2019-08-04 11:18:45 -04:00
port Update comment about __sync_lock_test_and_set() bug. 2019-10-26 12:55:06 -07:00
portability Update copyright for 2019 2019-01-02 12:44:25 -05:00
postmaster Fix inconsistencies and typos in the tree 2019-07-16 13:23:53 +09:00
regex Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
replication Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
rewrite Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
snowball Sync our Snowball stemmer dictionaries with current upstream 2019-07-04 13:26:48 +02:00
statistics Fix choose_best_statistics to check clauses individually 2019-11-28 22:20:45 +01:00
storage Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
tcop Revert hooks for session start and end, take two 2019-10-02 09:55:27 +09:00
tsearch Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
utils Further adjust EXPLAIN's choices of table alias names. 2019-12-11 17:05:18 -05:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
Makefile Get rid of jsonpath_gram.h and jsonpath_scanner.h 2019-03-20 11:13:34 +03:00
c.h Move configure --disable-float8-byval to pg_config_manual.h 2019-11-27 12:27:20 +01:00
fmgr.h Remove configure --disable-float4-byval 2019-11-21 18:29:21 +01:00
funcapi.h Make the order of the header file includes consistent. 2019-11-25 08:08:57 +05:30
getaddrinfo.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
getopt_long.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
miscadmin.h Fix inconsistencies and typos in the tree, take 11 2019-08-19 16:21:39 +09:00
pg_config.h.in Fix handling of OpenSSL's SSL_clear_options 2019-12-06 15:13:55 +09:00
pg_config.h.win32 Cosmetic cleaning of pg_config.h.win32 2019-12-10 21:24:25 +01:00
pg_config_ext.h.in
pg_config_ext.h.win32
pg_config_manual.h Move configure --disable-float8-byval to pg_config_manual.h 2019-11-27 12:27:20 +01:00
pg_getopt.h Use our own getopt() on OpenBSD. 2019-01-18 15:06:26 -05:00
pg_trace.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
pgstat.h Remove fmgr.h includes from headers that don't really need it. 2019-08-16 10:35:31 -07:00
pgtar.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
pgtime.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
port.h Sort out getpeereid() and peer auth handling on Windows 2019-12-16 09:36:08 +01:00
postgres.h Remove configure --disable-float4-byval 2019-11-21 18:29:21 +01:00
postgres_ext.h Phase 2 of pgindent updates. 2017-06-21 15:19:25 -04:00
postgres_fe.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
rusagestub.h Update copyright for 2019 2019-01-02 12:44:25 -05:00
windowapi.h Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00