Re: pgsql: Must not reach consistency before XLOG_BACKUP_RECORD

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Must not reach consistency before XLOG_BACKUP_RECORD
Дата
Msg-id 6317.1354723479@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Must not reach consistency before XLOG_BACKUP_RECORD  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: pgsql: Must not reach consistency before XLOG_BACKUP_RECORD  (Andres Freund <andres@2ndquadrant.com>)
Список pgsql-committers
Simon Riggs <simon@2ndQuadrant.com> writes:
> Must not reach consistency before XLOG_BACKUP_RECORD

> When waiting for an XLOG_BACKUP_RECORD the minRecoveryPoint
> will be incorrect, so we must not declare recovery as consistent
> before we have seen the record. Major bug allowing recovery to end
> too early in some cases, allowing people to see inconsistent db.

Is this actually a "major bug fix", or a useless redundant test?
I had thought that that if-statement's check of
XLogRecPtrIsInvalid(ControlFile->backupStartPoint)
was sufficient, because that will keep us from declaring consistency
before we get out of the backup in any case.

            regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: pgsql: Must not reach consistency before XLOG_BACKUP_RECORD
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: Must not reach consistency before XLOG_BACKUP_RECORD