Add GUC ignore_invalid_pages.
authorFujii Masao <fujii@postgresql.org>
Wed, 22 Jan 2020 02:56:34 +0000 (11:56 +0900)
committerFujii Masao <fujii@postgresql.org>
Wed, 22 Jan 2020 02:56:34 +0000 (11:56 +0900)
commit41c184bc642b25f67fb1d8ee290f28805fa5a0b4
tree6246f131d9251ab2b77e0ea092bae388c00a9d26
parent79a3efb84d09b1e98ad7bb2756fa570efb578d1d
Add GUC ignore_invalid_pages.

Detection of WAL records having references to invalid pages
during recovery causes PostgreSQL to raise a PANIC-level error,
aborting the recovery. Setting ignore_invalid_pages to on causes
the system to ignore those WAL records (but still report a warning),
and continue recovery. This behavior may cause crashes, data loss,
propagate or hide corruption, or other serious problems.
However, it may allow you to get past the PANIC-level error,
to finish the recovery, and to cause the server to start up.

Author: Fujii Masao
Reviewed-by: Michael Paquier
Discussion: https://www.postgresql.org/message-id/CAHGQGwHCK6f77yeZD4MHOnN+PaTf6XiJfEB+Ce7SksSHjeAWtg@mail.gmail.com
doc/src/sgml/config.sgml
src/backend/access/transam/xlogutils.c
src/backend/utils/misc/guc.c