pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Abhishek Bhola <abhishek.bhola@japannext.co.jp>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: PG 13.6 : Data corruption error message not being sent to syslog
Date: Wed, 25 May 2022 10:11:12 -0400
Message-ID: <1919213.1653487872@sss.pgh.pa.us> (raw)
In-Reply-To: <CAEDsCzhtpDwCMPzhStxzw7k6ZHsv-gQr1WfnE4y_3pSgRJr7OQ@mail.gmail.com>
References: <CAEDsCzhtpDwCMPzhStxzw7k6ZHsv-gQr1WfnE4y_3pSgRJr7OQ@mail.gmail.com>

Abhishek Bhola <abhishek.bhola@japannext.co.jp> writes:
> This morning I noticed this error in my PG CSV log file.
> 2022-05-25 23:59:17.776 JST,,,117110,,628cf2c5.1c976,1,,2022-05-25 23:59:17
> JST,9/611296,0,ERROR,XX001,"uncommitted xmin 16395356 from before xid
> cutoff 144683296 needs to be frozen",,,,,"while scanning block 19267 of
> relation ""relation_name""

> This was a data corruption error that I resolved by truncating the table
> and reloading it. However, I was curious why this message was not sent to
> my syslog.

Seems to me this filter explains that well enough:

> ## Added by DataConsulting Team for syslog filter
> if $programname == 'postgres' and \
> ($msg contains 'CODE:28000'    or \
> $msg contains 'CODE:28P01'     or \
> $msg contains 'CODE:3D000'     or \
> $msg contains 'CODE:08006'     or \
> $msg contains 'CODE:42501'        \
> ) then /xxxx/xxxx/xxx/pg_log/postgres_filter.log

You should realize of course that syslog is not a 100% reliable logging
mechanism -- at least most implementations are capable of dropping
messages under load.  But we needn't guess about reasons for missed
messages here.

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <1919213.1653487872@sss.pgh.pa.us>
Permalink:  ../1919213.1653487872@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1919213.1653487872@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, abhishek.bhola@japannext.co.jp
  Subject: Re: PG 13.6 : Data corruption error message not being sent to syslog
  In-Reply-To: <1919213.1653487872@sss.pgh.pa.us>
  References: <CAEDsCzhtpDwCMPzhStxzw7k6ZHsv-gQr1WfnE4y_3pSgRJr7OQ@mail.gmail.com> <1919213.1653487872@sss.pgh.pa.us>

* 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