pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Vijaykumar Jain <vijaykumarjain.github@gmail.com>
Cc: Daulat <daulat.dba@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: uncommitted xmin 3100586 from before xid cutoff 10339367 needs to be frozen
Date: Fri, 22 Mar 2024 14:05:31 +0100
Message-ID: <1a2e19f25e44d43535402909461b77f65c9f13a2.camel@cybertec.at> (raw)
In-Reply-To: <CAM+6J97GaSqQL0WN29CR_gB6YCQ1x7eA5hC3CuJLTs=+ug29dQ@mail.gmail.com>
References: <CALfOM6+xd_HU-E7f7mACxf8ZdBV-asxdAsWVCO7rsb+Em4feXg@mail.gmail.com>
	<a332ed10692b4a52efcf9320ad2ea3fe426c448f.camel@cybertec.at>
	<CALfOM6KRUw-6Qo-mSBvyBBtACZPPcQtUsPYjbANiZ_Rv-CR+Hw@mail.gmail.com>
	<4fde193ef41d7e7e00d3cd2fa4ceb55ade77f433.camel@cybertec.at>
	<CAM+6J97GaSqQL0WN29CR_gB6YCQ1x7eA5hC3CuJLTs=+ug29dQ@mail.gmail.com>

On Fri, 2024-03-22 at 16:07 +0530, Vijaykumar Jain wrote:
> On Fri, 22 Mar 2024 at 15:39, Laurenz Albe <laurenz.albe@cybertec.at> wrote:
> > On Fri, 2024-03-22 at 13:41 +0530, Daulat wrote:
> > > We are unable to take the backup of our database. While taking backup we are getting the same error. 
> > > 
> > > psql: error: connection to server at "localhost" (::1), port 5014 failed: FATAL:  pg_attribute catalog is missing 1 attribute(s) for relation OID 2662
> > 
> > Then you got severe data corruption.  This is the index "pg_class_oid_index",
> > and corrupted metadata make recovery difficult.
> > 
> > If I were you, I would seek professional help.
> > But first, stop working with this database immediately.
> > Stop the server and take a backup of all the files in the data
> > directory.
> 
> Do we have an option that op has a replica running and the bug has not propagated to the replica

No.  Feel free to check on the standby, it should have the same problem.

Yours,
Laurenz Albe





view thread (6+ messages)

Message-ID: <1a2e19f25e44d43535402909461b77f65c9f13a2.camel@cybertec.at>
Permalink:  ../1a2e19f25e44d43535402909461b77f65c9f13a2.camel@cybertec.at/
Also on:    postgresql.org/message-id/1a2e19f25e44d43535402909461b77f65c9f13a2.camel@cybertec.at

 · 

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: laurenz.albe@cybertec.at, vijaykumarjain.github@gmail.com, daulat.dba@gmail.com
  Subject: Re: uncommitted xmin 3100586 from before xid cutoff 10339367 needs to be frozen
  In-Reply-To: <1a2e19f25e44d43535402909461b77f65c9f13a2.camel@cybertec.at>
  References: <CALfOM6+xd_HU-E7f7mACxf8ZdBV-asxdAsWVCO7rsb+Em4feXg@mail.gmail.com> <a332ed10692b4a52efcf9320ad2ea3fe426c448f.camel@cybertec.at> <CALfOM6KRUw-6Qo-mSBvyBBtACZPPcQtUsPYjbANiZ_Rv-CR+Hw@mail.gmail.com> <4fde193ef41d7e7e00d3cd2fa4ceb55ade77f433.camel@cybertec.at> <CAM+6J97GaSqQL0WN29CR_gB6YCQ1x7eA5hC3CuJLTs=+ug29dQ@mail.gmail.com> <1a2e19f25e44d43535402909461b77f65c9f13a2.camel@cybertec.at>

* 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