pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daulat Ram <Daulat.Ram@exponential.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: FATAL: SMgrRelation hashtable corrupted
Date: Fri, 17 May 2019 09:30:05 -0400
Message-ID: <6414.1558099805@sss.pgh.pa.us> (raw)
In-Reply-To: <BL0PR01MB5187D3C3C76CA817560D223A9B0B0@BL0PR01MB5187.prod.exchangelabs.com>
References: <BL0PR01MB5187D3C3C76CA817560D223A9B0B0@BL0PR01MB5187.prod.exchangelabs.com>

Daulat Ram <Daulat.Ram@exponential.com> writes:
> My Postgres 11.2 container is not started due to the below error message. It is in streaming replication environment.

> 2019-05-17 06:41:19.954 UTC [11] FATAL:  SMgrRelation hashtable corrupted

Yes, this is probably the same issue reported in

https://www.postgresql.org/message-id/15672-b9fa7db32698269f@postgresql.org

https://www.postgresql.org/message-id/15684-4ef33de3271cf929@postgresql.org

The good news is that the underlying ALTER TABLE bug is fixed in 11.3.
The bad news is that your database is probably toast anyway --- an update
won't undo the catalog corruption that is causing the WAL replay crash.
I hope you have a recent backup to restore from.

			regards, tom lane





view thread (5+ messages)  latest in thread

Message-ID: <6414.1558099805@sss.pgh.pa.us>
Permalink:  ../6414.1558099805@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6414.1558099805@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, Daulat.Ram@exponential.com
  Subject: Re: FATAL: SMgrRelation hashtable corrupted
  In-Reply-To: <6414.1558099805@sss.pgh.pa.us>
  References: <BL0PR01MB5187D3C3C76CA817560D223A9B0B0@BL0PR01MB5187.prod.exchangelabs.com> <6414.1558099805@sss.pgh.pa.us>

* 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