Don't use O_SYNC or similar when opening signal file to fsync it.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 31 Jul 2021 06:36:11 +0000 (09:36 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 31 Jul 2021 06:36:11 +0000 (09:36 +0300)
commite9f5a0681cb9cf74b4c1c98e10182ccce04aa08c
tree8a9aaccc6e840a035ba0f24c28cce313a106e9fb
parent0b8ea707580640f9d5562de77f4b563fa9131547
Don't use O_SYNC or similar when opening signal file to fsync it.

No need to use get_sync_bit() when we're calling pg_fsync() on the file.
We're not writing to the files, so it doesn't make any difference in
practice, but seems less surprising this way.

Reviewed-by: Andres Freund
Discussion: https://www.postgresql.org/message-id/b3b71061-4919-e882-4857-27e370ab134a%40iki.fi
src/backend/access/transam/xlog.c