Re: BUG #2488: backup history file is archived doubly

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2488: backup history file is archived doubly
Дата
Msg-id 2337.1151002016@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2488: backup history file is archived doubly  ("Masao Fujii" <fujii.masao@oss.ntt.co.jp>)
Список pgsql-bugs
"Masao Fujii" <fujii.masao@oss.ntt.co.jp> writes:
> The cause of the problem is that pg_stop_backup creates two *.ready files.
> One file is created by pg_stop_backup > RemoveOldBackupHistory >
> XLogArchiveIsDone > XLogArchiveNotify.
> Another is created by pg_stop_backup > XLogArchiveNotify.

Oooh, good catch.  The cleanest solution would be to modify
RemoveOldBackupHistory so that it explicitly skips the current entry.
But I'm strongly tempted to just remove the code in pg_stop_backup,
and document that RemoveOldBackupHistory gets the job done (perhaps
renaming it).

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2490: '||' and type casting for user defined types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2486: PANIC when CTRL-C on vacuum full analyze