pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fujii Masao <fujii@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add GUC ignore_invalid_pages.
Date: Wed, 22 Jan 2020 02:57:42 +0000
Message-ID: <E1iu6D8-0000tK-Cm@gemulon.postgresql.org> (raw)

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...

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(-)



Message-ID: <E1iu6D8-0000tK-Cm@gemulon.postgresql.org>
Permalink:  ../E1iu6D8-0000tK-Cm@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iu6D8-0000tK-Cm@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: fujii@postgresql.org
  Subject: Re: pgsql: Add GUC ignore_invalid_pages.
  In-Reply-To: <E1iu6D8-0000tK-Cm@gemulon.postgresql.org>
  References: <E1iu6D8-0000tK-Cm@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox