pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kyotaro Horiguchi <horikyota.ntt@gmail.com>
To: hkanchu@apple.com
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Any way to understand state after data corruption failures during startup.
Date: Fri, 17 Jun 2022 14:03:43 +0900 (JST)
Message-ID: <20220617.140343.794518949016832455.horikyota.ntt@gmail.com> (raw)
In-Reply-To: <9AAF8A3E-560D-4EEC-8828-92636B356777@apple.com>
References: <9AAF8A3E-560D-4EEC-8828-92636B356777@apple.com>

At Thu, 16 Jun 2022 19:46:25 -0700, Harinath Kanchu <hkanchu@apple.com> wrote in 
> 
> Hello,
> 
> If postgres fail when it is starting as standby due to WAL file corruption, can we get the status through any exit code or by parsing pg_control file ?
> 
> I can see the  “XX001” code is emitted in logs but parsing logs doesn’t seem to be a good option. Please suggest.

I'm not sure exactly what is what you want to achieve here, but there
is a negative evidence for the reliability of detecting WAL corruption
failure without searching server logs.

[64923:startup] [XX000] 2022-06-17 13:30:52.493 JST PANIC:  incorrect resource manager data checksum in record at 0/3000060

At least in this case, there's no trace of a server-stop due to WAL
corruption left behind other than in server log.

regards.

-- 
Kyotaro Horiguchi
NTT Open Source Software Center





view thread (2+ messages)

Message-ID: <20220617.140343.794518949016832455.horikyota.ntt@gmail.com>
Permalink:  ../20220617.140343.794518949016832455.horikyota.ntt@gmail.com/
Also on:    postgresql.org/message-id/20220617.140343.794518949016832455.horikyota.ntt@gmail.com

 · 

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-general@postgresql.org
  Cc: horikyota.ntt@gmail.com, hkanchu@apple.com
  Subject: Re: Any way to understand state after data corruption failures during startup.
  In-Reply-To: <20220617.140343.794518949016832455.horikyota.ntt@gmail.com>
  References: <9AAF8A3E-560D-4EEC-8828-92636B356777@apple.com> <20220617.140343.794518949016832455.horikyota.ntt@gmail.com>

* 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