Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after
От
Tom Lane
Тема
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after
Дата
Msg-id
12428.1267385460@sss.pgh.pa.us
Ответ на
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by
deferring the fsyncs until after (Greg Stark)
Список
Дерево обсуждения
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after Tom Lane <tgl@sss.pgh.pa.us>
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after Andres Freund <andres@anarazel.de>
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by
deferring the fsyncs until after Greg Stark <stark@mit.edu>
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after Tom Lane <tgl@sss.pgh.pa.us>
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by
deferring the fsyncs until after Greg Stark <stark@mit.edu>
Re: [COMMITTERS] Re: pgsql: Speed up CREATE DATABASE by deferring the fsyncs until after Tom Lane <tgl@sss.pgh.pa.us>
Greg Stark writes: > So I'm thinking of something like this. > Ignore ESDIR when opening a directory (and return immediately) > and ignore EBADF when trying to fsync a directory. Seems reasonable, but get rid of the comment "However we can't do this just yet, it has portability issues"; and you've got a double semicolon in one place. It might also be worth commenting the BasicOpenFile calls along the lines of "Many OSs don't let us open directories RDWR, while some reject fsync on files opened RDONLY, so we need two cases." regards, tom lane
В списке pgsql-hackers по дате отправления
От: Josh Berkus
Дата: