postgresql/src/bin
Thomas Munro 2dbe890571 Support direct I/O on macOS.
Macs don't understand O_DIRECT, but they can disable caching with a
separate fcntl() call.  Extend the file opening functions in fd.c to
handle this for us if the caller passes in PG_O_DIRECT.

For now, this affects only WAL data and even then only if you set:

  max_wal_senders=0
  wal_level=minimal

This is not expected to be very useful on its own, but later proposed
patches will make greater use of direct I/O, and it'll be useful for
testing if developers on Macs can see the effects.

Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CA%2BhUKG%2BADiyyHe0cun2wfT%2BSVnFVqNYPxoO6J9zcZkVO7%2BNGig%40mail.gmail.com
2021-07-19 11:01:01 +12:00
..
initdb Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
pg_amcheck Translation updates 2021-06-21 12:33:50 +02:00
pg_archivecleanup Translation updates 2021-06-21 12:33:50 +02:00
pg_basebackup Disable tests involving ZLIB on Windows for pg_receivewal 2021-07-16 13:21:18 +09:00
pg_checksums Optimize pg_checksums --enable where checksum is already set 2021-06-30 09:58:59 +09:00
pg_config Translation updates 2021-06-21 12:33:50 +02:00
pg_controldata Translation updates 2021-06-21 12:33:50 +02:00
pg_ctl Translation updates 2021-06-21 12:33:50 +02:00
pg_dump Fix pg_dump for disabled triggers on partitioned tables 2021-07-16 17:29:22 -04:00
pg_resetwal Replace explicit PIN entries in pg_depend with an OID range test. 2021-07-15 11:41:47 -04:00
pg_rewind Translation updates 2021-06-21 12:33:50 +02:00
pg_test_fsync Support direct I/O on macOS. 2021-07-19 11:01:01 +12:00
pg_test_timing Translation updates 2021-06-21 12:33:50 +02:00
pg_upgrade Translation updates 2021-06-21 12:33:50 +02:00
pg_verifybackup Simplify error handing of jsonapi.c for the frontend 2021-07-02 09:35:12 +09:00
pg_waldump Allow specifying pg_waldump --rmgr option multiple times. 2021-07-01 15:32:57 +03:00
pgbench Fix pgbench timestamp bugs. 2021-07-11 20:08:02 +12:00
pgevent Update copyright for 2021 2021-01-02 13:06:25 -05:00
psql Portability fixes for sigwait. 2021-07-15 12:34:31 +12:00
scripts Put option listing back into alphabetical order 2021-06-25 11:40:06 +02:00
Makefile Add pg_amcheck, a CLI for contrib/amcheck. 2021-03-12 13:00:01 -05:00