pgsql: Add GUC ignore_invalid_pages.

From: Fujii Masao <fujii(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Add GUC ignore_invalid_pages.
Date: 2020-01-22 02:57:42
Message-ID: E1iu6D8-0000tK-Cm@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/41c184bc642b25f67fb1d8ee290f28805fa5a0b4

Modified Files
--------------
doc/src/sgml/config.sgml | 25 +++++++++++++++++++++++++
src/backend/access/transam/xlogutils.c | 9 +++++++--
src/backend/utils/misc/guc.c | 20 ++++++++++++++++++++
3 files changed, 52 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2020-01-22 05:55:10 Re: pgsql: walreceiver uses a temporary replication slot by default
Previous Message Amit Kapila 2020-01-22 02:15:50 pgsql: Fix the computation of max dead tuples during the vacuum.