Re: .ready and .done files considered harmful
Nathan Bossart <bossartn@amazon.com>
From: "Bossart, Nathan" <bossartn@amazon.com>
To: Dipesh Pandit <dipesh.pandit@gmail.com>
Cc: Robert Haas <robertmhaas@gmail.com>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Jeevan Ladhe <jeevan.ladhe@enterprisedb.com>, Stephen Frost <sfrost@snowman.net>, Andres Freund <andres@anarazel.de>, Hannu
Krosing <hannuk@google.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2021-09-14T18:07:31Z
Lists: pgsql-hackers
On 9/14/21, 9:18 AM, "Bossart, Nathan" <bossartn@amazon.com> wrote: > This is an interesting idea, but the "else" block here seems prone to > race conditions. I think we'd have to hold arch_lck to prevent that. > But as I mentioned above, if we are okay with depending on the > fallback directory scans, I think we can remove the "else" block > completely. Thinking further, we probably need to hold a lock even when we are creating the .ready file to avoid race conditions. Nathan
Commits
-
Reduce overhead of renaming archive status files.
- 756e221db610 16.0 cited
-
Improve performance of pgarch_readyXlog() with many status files.
- beb4e9ba1652 15.0 landed
-
Prioritize history files when archiving
- b981df4cc09a 12.0 cited