pgsql: Prevent the already-archived WAL file from being archived again.
В списке pgsql-committers по дате отправления:
| От | Fujii Masao |
|---|---|
| Тема | pgsql: Prevent the already-archived WAL file from being archived again. |
| Дата | |
| Msg-id | E1XhCtT-0004FP-06@gemulon.postgresql.org обсуждение |
| Список | pgsql-committers |
Prevent the already-archived WAL file from being archived again. Previously the archive recovery always created .ready file for the last WAL file of the old timeline at the end of recovery even when it's restored from the archive and has .done file. That is, there was the case where the WAL file had both .ready and .done files. This caused the already-archived WAL file to be archived again. This commit prevents the archive recovery from creating .ready file for the last WAL file if it has .done file, in order to prevent it from being archived again. This bug was added when cascading replication feature was introduced, i.e., the commit 5286105800c7d5902f98f32e11b209c471c0c69c. So, back-patch to 9.2, where cascading replication was added. Reviewed by Michael Paquier Branch ------ REL9_3_STABLE Details ------- http://git.postgresql.org/pg/commitdiff/d45cd9e19ffdab8758f088a36be0cd7f3588533c Modified Files -------------- src/backend/access/transam/xlog.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера