Re: BUG #15402: Hot standby server with archive_mode=on keepsinitial WAL segments

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: BUG #15402: Hot standby server with archive_mode=on keepsinitial WAL segments
Дата
Msg-id 20180926035205.GJ1659@paquier.xyz
обсуждение исходный текст
Ответ на BUG #15402: Hot standby server with archive_mode=on keeps initial WALsegments  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15402: Hot standby server with archive_mode=on keepsinitial WAL segments
Список pgsql-bugs
On Wed, Sep 26, 2018 at 03:26:50AM +0000, PG Bug reporting form wrote:
> A hot standby server with “archive_mode = on” keeps initial WAL segment
> files that copied by pg_basebackup. It shows the following status.
> 000000010000000000000042 will be kept forever in this case.

How did you find yourself in this situation?  Did you take a base backup
from a primary which had .ready files in it, and those got copied to the
standby's data folder?  We may want to study the possibility of
filtering things when taking a base backup instead.

> Though I understand renaming the .ready to .done manually can clean it,
> I would like to fix the server code like the following patch.
> I'd appreciate if you would consider that.

Your patch looks incorrect to me to begin with...  What if archive_mode
is switched from "on" to "always" back-and-forth and there some of the
past segments which should be archived are not?
--
Michael

Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: PG Bug reporting form
Дата:
Сообщение: BUG #15402: Hot standby server with archive_mode=on keeps initial WALsegments
Следующее
От: TAKATSUKA Haruka
Дата:
Сообщение: Re: BUG #15402: Hot standby server with archive_mode=on keepsinitial WAL segments