Two-phase update of restart_lsn in LogicalConfirmReceivedLocation
В списке pgsql-hackers по дате отправления:
| От | Arseny Sher |
|---|---|
| Тема | Two-phase update of restart_lsn in LogicalConfirmReceivedLocation |
| Дата | |
| Msg-id | 87a7vsqrqh.fsf@ars-thinkpad обсуждение исходный текст |
| Ответы |
Re: Two-phase update of restart_lsn in LogicalConfirmReceivedLocation
|
| Список | pgsql-hackers |
Hello, In LogicalConfirmReceivedLocation two fields (data.catalog_xmin and effective_catalog_xmin) of ReplicationSlot structure are used for advancing xmin of the slot. This allows to avoid hole when tuples might already have been vacuumed, but slot's state was not yet flushed to the disk: if we crash during this hole, after restart we would assume that all tuples with xmax > old catalog_xmin are still there, while actually some of them might be already vacuumed. However, the same dodge is not used for restart_lsn advancement. This means that under somewhat unlikely circumstances it is possible that we will start decoding from segment which was already recycled, making the slot broken. Shouldn't this be fixed? -- Arseny Sher Postgres Professional: http://www.postgrespro.com The Russian Postgres Company
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера