pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Sasha Aliashkevich <olsender@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: ERROR: cannot freeze committed xmax
Date: Thu, 15 Jul 2021 09:36:27 -0400
Message-ID: <202107151336.g55vi6aj7e7m@alvherre.pgsql> (raw)
In-Reply-To: <8C414E45-6DD8-48E0-84B2-2D53545000D0@gmail.com>

Hi Sasha

On 2021-Jul-14, Sasha Aliashkevich wrote:

>  lp |  ctid   |   xmin    | xmax | xmax_is_lock | xmax_committed | xmax_rolled_back | xmax_multixact 
> ----+---------+-----------+------+--------------+----------------+------------------+----------------
>  19 | (75,21) |       571 |  572 | f            | f              | t                | f              
>  21 | (75,21) |       572 |    0 | f            | f              | t                | f              

Yeah, row 19 here is dead and should have been removed by vacuum (same
with the ones in pg_depend).  I don't know why it wasn't.  If you query
the tables
SELECT * FROM pg_proc WHERE ctid = '(75,19)'
are they visible?  They shouldn't.  If they are visible, maybe try to
UPDATE them, again by ctid; perhaps that will kill them for good.  But
since the txid_status() returns committed, that likely won't work.

Maybe if you try to VACUUM by setting vacuum_freeze_min_age to a high
value (so that it doesn't try to freeze, but only remove them) they are
removed?

(I didn't verify that the values you &-mask the infomask with are
correct.)

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/





view thread (4+ messages)  latest in thread

Message-ID: <202107151336.g55vi6aj7e7m@alvherre.pgsql>
Permalink:  ../202107151336.g55vi6aj7e7m@alvherre.pgsql/
Also on:    postgresql.org/message-id/202107151336.g55vi6aj7e7m@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@alvh.no-ip.org, olsender@gmail.com
  Subject: Re: ERROR: cannot freeze committed xmax
  In-Reply-To: <202107151336.g55vi6aj7e7m@alvherre.pgsql>
  References: <8C414E45-6DD8-48E0-84B2-2D53545000D0@gmail.com> <202107151336.g55vi6aj7e7m@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