Re: [PATCH] Accept connections post recovery without waiting for RemoveOldXlogFiles
От | Fujii Masao |
---|---|
Тема | Re: [PATCH] Accept connections post recovery without waiting for RemoveOldXlogFiles |
Дата | |
Msg-id | CAHGQGwExfU=EEsUhJ7_2CsU2-baT5xsJ5RK0+O5_6fE3BNOqZA@mail.gmail.com обсуждение исходный текст |
Ответ на | [PATCH] Accept connections post recovery without waiting for RemoveOldXlogFiles (Nitin Motiani <nitinmotiani@google.com>) |
Ответы |
Re: [PATCH] Accept connections post recovery without waiting for RemoveOldXlogFiles
Re: [PATCH] Accept connections post recovery without waiting for RemoveOldXlogFiles |
Список | pgsql-hackers |
On Mon, Sep 8, 2025 at 6:33 PM Nitin Motiani <nitinmotiani@google.com> wrote: > > Hi Hackers, > > I'd like to propose a patch to allow accepting connections post recovery without waiting for the removal of old xlog files. As another idea, could crash recovery avoid waiting for the end-of-recovery checkpoint itself to finish, similar to archive recovery? In other words, crash recovery would write the end-of-recovery WAL record and request a checkpoint, but not block until it completes. Thought? One concern, though: in your case, the first checkpoint after crash recovery could take a very long time, since it needs to remove a large number of WAL files. This could delay subsequent checkpoints beyond checkpoint_timeout. If so, perhaps we'd need to limit how many WAL files a single checkpoint can remove. Regards, -- Fujii Masao
В списке pgsql-hackers по дате отправления: