- Notifications
You must be signed in to change notification settings - Fork5
Commit2a77355
committed
Change the retry-loop in standby mode to also try restoring files from
pg_xlog directory. This is essential for replaying WAL records thatwere streamed from the master, after a standby server restart.If a corrupt record is seen in a file restored from the archive orstreamed from the master, log it as a WARNING and keep retrying. If thecorruption is permanent, and not just a glitch in the whatever copies thefiles to the archive or a network error not caught by CRC checks in TCPfor example, we will keep retrying and logging the WARNING indefinitely.But that's better than shutting down completely, the standby is stilluseful for running read-only queries. In PITR the recovery ends at such acorrupt record, which is a bit questionable, but that's the behavior wehad in previous releases and we don't feel like chaning it now. It doesmake sense for tools like pg_standby.1 parentfeb5087 commit2a77355
1 file changed
+231
-113
lines changed0 commit comments
Comments
(0)