Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRgMW-0001kB-QQ for pgsql-general@arkaria.postgresql.org; Fri, 17 May 2019 17:09:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRgMT-0004Jf-C4 for pgsql-general@arkaria.postgresql.org; Fri, 17 May 2019 17:09:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRgMS-0004Ae-UX for pgsql-general@lists.postgresql.org; Fri, 17 May 2019 17:09:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRgML-0006bz-LB for pgsql-general@lists.postgresql.org; Fri, 17 May 2019 17:09:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x4HH9MmD029773; Fri, 17 May 2019 13:09:22 -0400 From: Tom Lane To: Alvaro Herrera cc: Daulat Ram , "pgsql-general@lists.postgresql.org" Subject: Re: FATAL: SMgrRelation hashtable corrupted In-reply-to: <20190517154237.GA26653@alvherre.pgsql> References: <20190517154237.GA26653@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 17 May 2019 11:42:37 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <29771.1558112962.1@sss.pgh.pa.us> Date: Fri, 17 May 2019 13:09:22 -0400 Message-ID: <29772.1558112962@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2019-May-17, Tom Lane wrote: >> 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. > Hmm, shouldn't it be possible to do a PITR restore to the point just > before the problem record, ie. 5E/17061648? If he's got the necessary WAL archives :-( A dump and restore would be advisable afterwards in any case, since the catalog corruption would still be there. regards, tom lane