Hi, In UpdateMinRecoveryPoint() and XLogNeedsFlush(), updateMinRecoveryPoint is used for us to short-circuit future checks only during a crash recovery. But it doesn't seem to play its role in a crash recovery that follows an archive recovery. Because such crash recovery always starts from *valid* minRecoveryPoint, i.e., updateMinRecoveryPoint is never set to FALSE.
How about always resetting ControlFile->minRecoveryPoint to {0, 0} at the beginning of a crash recovery, to fix the bug? Regards, -- Fujii Masao NIPPON TELEGRAPH AND TELEPHONE CORPORATION NTT Open Source Software Center -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers