pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Tulqin Navruzov <tulqin.navruzov@finnetlimited.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Fwd: Postgresql Data corruption
Date: Wed, 15 Jan 2020 11:53:30 +0900
Message-ID: <20200115025330.GE2243@paquier.xyz> (raw)
In-Reply-To: <156c0845-c365-b0eb-88ac-59f72c36b697@aklaver.com>
References: <CANb6iOEpZnarQXLTzargoOEsOnkUGmkpZFw7KOpUoqX-GWhnOw@mail.gmail.com>
	<CANb6iOF68v34C+WcQiQQ=HRrjz-bpYP3cZcbREQaXSxU7UU0Hw@mail.gmail.com>
	<156c0845-c365-b0eb-88ac-59f72c36b697@aklaver.com>

On Tue, Jan 14, 2020 at 02:34:04PM -0800, Adrian Klaver wrote:
> On 1/14/20 12:44 PM, Tulqin Navruzov wrote:
>> but can logged in with another user and trying to select from some
>> tables , showing this message :
>> 
>> ERROR:  catalog is missing 11 attribute(s) for relid 113971
>> 
>> Could you help us to solve this problem? or could you give contact who
>> can help with this?
> 
> Do you have space to back up the $DATADIR or do you have a recent backup?
> 
> Asking because that would be helpful before you try the below.
> 
> I would take a look at:
> https://www.postgresql.org/docs/12/sql-reindex.html

That's a bad data corruption pattern, and rolling in a backup is
recommended (make sure that they are actually safe to use!).  A
REINDEX should help you to retrieve data and move it somewhere else if
you don't have a backup, but nothing more as there is no guarantee
that other parts of the system are not broken.  As others have already
pointed out, take the time necessary to read that:
https://wiki.postgresql.org/wiki/Corruption

But first, you should take three, slow, deep breaths.  Rushing can
only make things worse.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (5+ messages)

Message-ID: <20200115025330.GE2243@paquier.xyz>
Permalink:  ../20200115025330.GE2243@paquier.xyz/
Also on:    postgresql.org/message-id/20200115025330.GE2243@paquier.xyz

 · 

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: michael@paquier.xyz, adrian.klaver@aklaver.com, tulqin.navruzov@finnetlimited.com
  Subject: Re: Fwd: Postgresql Data corruption
  In-Reply-To: <20200115025330.GE2243@paquier.xyz>
  References: <CANb6iOEpZnarQXLTzargoOEsOnkUGmkpZFw7KOpUoqX-GWhnOw@mail.gmail.com> <CANb6iOF68v34C+WcQiQQ=HRrjz-bpYP3cZcbREQaXSxU7UU0Hw@mail.gmail.com> <156c0845-c365-b0eb-88ac-59f72c36b697@aklaver.com> <20200115025330.GE2243@paquier.xyz>

* 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