Re: Use durable_unlink for .ready and .done files for WAL segmentremoval
От
Michael Paquier
Тема
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval
Дата
Msg-id
20180928052331.GI1500@paquier.xyz
Ответ на
Список
Дерево обсуждения
Use durable_unlink for .ready and .done files for WAL segment removal Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Andres Freund <andres@anarazel.de>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segment removal Andres Freund <andres@anarazel.de>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Stephen Frost <sfrost@snowman.net>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Stephen Frost <sfrost@snowman.net>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Nathan Bossart <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval "Bossart, Nathan" <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Andres Freund <andres@anarazel.de>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval "Bossart, Nathan" <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval "Bossart, Nathan" <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval "Bossart, Nathan" <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval "Bossart, Nathan" <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval "Bossart, Nathan" <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Kyotaro HORIGUCHI <horiguchi.kyotaro@lab.ntt.co.jp>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval "Bossart, Nathan" <bossartn@amazon.com>
Re: Use durable_unlink for .ready and .done files for WAL segmentremoval Michael Paquier <michael@paquier.xyz>
On Thu, Sep 27, 2018 at 08:40:26PM -0700, Andres Freund wrote: > On 2018-09-28 12:28:27 +0900, Michael Paquier wrote: >> While reviewing the archiving code, I have bumped into the fact that >> XLogArchiveCleanup() thinks that it is safe to do only a plain unlink() >> for .ready and .done files when removing a past segment. I don't think >> that it is a smart move, as on a subsequent crash we may still see >> those, but the related segment would have gone away. This is not really >> a problem for .done files, but it could confuse the archiver to see some >> .ready files about things that have already gone away. > > Isn't that window fundamentally there anyway? Sure. However the point I would like to make is that if we have the possibility to reduce this window, then we should. -- Michael
В списке pgsql-hackers по дате отправления
От: Andres Freund
Дата: