Re: O_DIRECT on macOS
От
Thomas Munro
Тема
Re: O_DIRECT on macOS
Дата
Msg-id
CA+hUKG+LdNTtPdEBPC=V=nVUMTE5CbVgS_ErpR7JQUs1pB1pKQ@mail.gmail.com
Ответ на
Re: O_DIRECT on macOS (Tom Lane)
Список
Дерево обсуждения
O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS Justin Pryzby <pryzby@telsasoft.com>
Re: O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS Andres Freund <andres@anarazel.de>
Re: O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS Andres Freund <andres@anarazel.de>
Re: O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS Tom Lane <tgl@sss.pgh.pa.us>
Re: O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS Tom Lane <tgl@sss.pgh.pa.us>
Re: O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS Tom Lane <tgl@sss.pgh.pa.us>
Re: O_DIRECT on macOS Tom Lane <tgl@sss.pgh.pa.us>
Re: O_DIRECT on macOS Thomas Munro <thomas.munro@gmail.com>
Re: O_DIRECT on macOS John Naylor <john.naylor@enterprisedb.com>
On Tue, Jul 20, 2021 at 2:13 AM Tom Lane wrote: > Hmm ... we used to have to avoid putting #if constructs in the arguments > of macros (such as StaticAssertStmt). Maybe that's not a thing anymore > with C99, and in any case this whole stanza is fairly platform-specific > so we may not run into a compiler that complains. But my hindbrain wants > to see this done with separate statements, eg > > #if defined(O_CLOEXEC) > StaticAssertStmt((PG_O_DIRECT & O_CLOEXEC) == 0, > "PG_O_DIRECT collides with O_CLOEXEC"); > #endif Ok, done. 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?
В списке pgsql-hackers по дате отправления