Why does xlog.c not treat COMMIT_PREPARED/ABORT_PREPARED as commit/abort?
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Why does xlog.c not treat COMMIT_PREPARED/ABORT_PREPARED as commit/abort? |
| Дата | |
| Msg-id | 20552.1406238797@sss.pgh.pa.us обсуждение исходный текст |
| Ответы |
Re: Why does xlog.c not treat
COMMIT_PREPARED/ABORT_PREPARED as commit/abort?
|
| Список | pgsql-hackers |
There's a bunch of code in xlog.c that special-cases commit/abort records
for purposes of controlling replay, ie whether you can pause before/after
a particular xlog record, extract a timestamp from it, etc. This code
does not, and apparently never has, counted COMMIT_PREPARED or
ABORT_PREPARED as commit/abort records. Is there a good reason for that,
or is it just an oversight?
I noticed this in investigation of bug #11032, which is a side effect
of the fact that xlog.c doesn't believe there's any timestamp to be
found in COMMIT_PREPARED records. But more generally, they can't be
used as recovery targets, and I don't see a reason for that.
Assuming we agree that this is a bug, is it something to back-patch,
or do we not want to change back-branch behavior here?
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера