Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there
Дата
Msg-id
20171107151347.77vumrbitqbzdzaf@alap3.anarazel.de
Ответ на
Список
Дерево обсуждения
Re: [BUGS] Fails to work on live images due to fsync() on pg_commit_ts before doing any write there Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there Stephen Frost <sfrost@snowman.net>
Re: [BUGS] Fails to work on live images due to fsync() on pg_commit_ts before doing any write there Tom Lane <tgl@sss.pgh.pa.us>
Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there Raphael Hertzog <hertzog@debian.org>
Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there Andres Freund <andres@anarazel.de>
Re: [BUGS] Fails to work on live images due to fsync() onpg_commit_ts before doing any write there Raphael Hertzog <hertzog@debian.org>
On 2017-11-07 16:06:02 +0100, Raphael Hertzog wrote:
> On Tue, 07 Nov 2017, Stephen Frost wrote:
> > Raphael,
> > 
> > * Raphael Hertzog (hertzog@debian.org) wrote:
> > > Still I believe that this issue should be fixed in both sides. It's not
> > > smart from PostgreSQL to call fsync() when it has not made any change.
> > 
> > Why?
> 
> Because it's useless. Why call fsync() when you know that it doesn't do
> anything?

It's not generally useless, no. You don't know if the relevant directory
hasn't been modified since postgres was started last / crashed
last. That matters for the durability and atomicity of renames
etc. There's simply no way to track that in postgres, given it's
arbitrary external effects.

Greetings,

Andres Freund


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления
От: Raphael Hertzog
Дата:
FAQ