pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: 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 11:09:29 +0100
Message-ID: <4fde193ef41d7e7e00d3cd2fa4ceb55ade77f433.camel@cybertec.at> (raw)
In-Reply-To: <CALfOM6KRUw-6Qo-mSBvyBBtACZPPcQtUsPYjbANiZ_Rv-CR+Hw@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>

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.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com





view thread (6+ messages)  latest in thread

Message-ID: <4fde193ef41d7e7e00d3cd2fa4ceb55ade77f433.camel@cybertec.at>
Permalink:  ../4fde193ef41d7e7e00d3cd2fa4ceb55ade77f433.camel@cybertec.at/
Also on:    postgresql.org/message-id/4fde193ef41d7e7e00d3cd2fa4ceb55ade77f433.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, daulat.dba@gmail.com
  Subject: Re: uncommitted xmin 3100586 from before xid cutoff 10339367 needs to be frozen
  In-Reply-To: <4fde193ef41d7e7e00d3cd2fa4ceb55ade77f433.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>

* 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