pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Andrey Borodin <x4mmm@yandex-team.ru>
Cc: pgsql-bugs@lists.postgresql.org, Анна Крханбарова <annkpx@yandex-team.ru>
Cc: Dmitriy Sarafannikov <dsarafan@yandex-team.ru>
Subject: Re: Logging corruption error codes
Date: Thu, 20 Jun 2019 13:09:45 -0400
Message-ID: <20190620170945.GA21117@alvherre.pgsql> (raw)
In-Reply-To: <25F6C686-6442-4A6B-BAF8-A6F7B84B16DE@yandex-team.ru>

On 2019-Jun-20, Andrey Borodin wrote:

> Hi!
> 
> We are fine-tuning our data corruption monitoring and found out that many corruption cases do not report proper error code.
> This makes automatic log analyzer way too smart program.
> We think that corruption error codes should be given in cases when B-tree or TOAST do not know how to interpret data.
> PFA patch with cases that we have found in logs and consider evidence of corruption.

This is not totally insane -- other similar messages such as 'corrupted
page pointers' in bufpage.c get the same errcode.

I would like to have a separate marking for messages indicating a
system-level permanent problem rather than user error ("table/column X
does not exist"), retryable condition ("serializability violation"), or
resource exhaustion ("out of memory", "too many clients"), but that's
probably a separate patch: things like "could not open/read/write file"
for a data file, or "xlog flush request XYZ not satisfied", and so on,
which also indicate a kind of corruption.  As you say, currently we have
to have much too smart programs to weed out the serious errors that
ought to show up in an alerting system from run-of-the-mill problems.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (12+ messages)  latest in thread

Message-ID: <20190620170945.GA21117@alvherre.pgsql>
Permalink:  ../20190620170945.GA21117@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190620170945.GA21117@alvherre.pgsql

 · 

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-bugs@postgresql.org
  Cc: alvherre@2ndquadrant.com, x4mmm@yandex-team.ru, annkpx@yandex-team.ru, dsarafan@yandex-team.ru
  Subject: Re: Logging corruption error codes
  In-Reply-To: <20190620170945.GA21117@alvherre.pgsql>
  References: <25F6C686-6442-4A6B-BAF8-A6F7B84B16DE@yandex-team.ru> <20190620170945.GA21117@alvherre.pgsql>

* 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