pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Moreno Andreo <moreno.andreo@evolu-s.it>
Cc: PostgreSQL mailing lists <pgsql-general@postgresql.org>
Subject: Re: Pg11 -- MultiXactId xxxx has not been created yet -- apparent wraparound
Date: Fri, 4 Oct 2019 16:14:53 -0300
Message-ID: <20191004191453.GA25115@alvherre.pgsql> (raw)
In-Reply-To: <43276b47-4de7-ed0e-8b4e-44b2976cbca2@evolu-s.it>

On 2019-Oct-04, Moreno Andreo wrote:

> Il 04/10/19 18:28, Alvaro Herrera ha scritto:
> > I wonder if it would work to just clear that multixact with
> > SELECT ... WHERE ctid='(3160,31)' FOR UPDATE
> select ...what? :-) Sorry but it's totally beyond my knowledge and my
> control.... after resolving the issue i'll surely go and search docs to
> understand what we've done....

This should do it:

SELECT * FROM the_broken_table WHERE <what I said above>

But of course I make no promise of it working or even having any effect
at all ...

> One thing I forgot to report is that this cluster is just upgraded from a
> 9.1 that was crashing at least once a day (in many cases the upgrade itself
> resolved the issue)
> here's the log line
> 2019-10-03 15:11:52 CEST LOG:  server process (PID 18668) was terminated by
> exception 0xC0000005
> In this case probably the access violation was due to a data corruption.
> These are customer machines that are really badly kept and NTFS issues are
> not that rare, so I won't bother investigating what's happened but just make
> the customer up & running again.

Hmm, well, it does sound like corrupted data, and if we suspect that
that's the case then there's not much we can do other than clearing the
page and moving on.

That exception code is STATUS_ACCESS_VIOLATION.  Old Postgres bugs caused
that, many are fixed in current versions I think.

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





view thread (9+ messages)  latest in thread

Message-ID: <20191004191453.GA25115@alvherre.pgsql>
Permalink:  ../20191004191453.GA25115@alvherre.pgsql/
Also on:    postgresql.org/message-id/20191004191453.GA25115@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-general@postgresql.org
  Cc: alvherre@2ndquadrant.com, moreno.andreo@evolu-s.it
  Subject: Re: Pg11 -- MultiXactId xxxx has not been created yet -- apparent wraparound
  In-Reply-To: <20191004191453.GA25115@alvherre.pgsql>
  References: <43276b47-4de7-ed0e-8b4e-44b2976cbca2@evolu-s.it> <20191004191453.GA25115@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