Re: O_DIRECT on macOS

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Andres Freund <andres@anarazel.de>, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2021-07-19T23:43:07Z
Lists: pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> While I was here again, I couldn't resist trying to extend this to
> Solaris, since it looked so easy.  I don't have access, but I tested
> on Illumos by undefining O_DIRECT.  Thoughts?

I can try that on the gcc farm in a bit.

			regards, tom lane



Commits

  1. Don't use #if inside function-like macro arguments.

  2. Support direct I/O on macOS.