Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwQtm-0001aq-Uh for pgsql-general@arkaria.postgresql.org; Sun, 02 Sep 2018 11:50:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwQtl-0002HE-Cp for pgsql-general@arkaria.postgresql.org; Sun, 02 Sep 2018 11:50:33 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fwQtl-0002H0-0t for pgsql-general@lists.postgresql.org; Sun, 02 Sep 2018 11:50:33 +0000 Received: from tamriel.snowman.net ([96.255.250.162]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fwQtd-0005JH-Rz for pgsql-general@postgresql.org; Sun, 02 Sep 2018 11:50:31 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id 81F105F79C; Sun, 2 Sep 2018 07:50:25 -0400 (EDT) Date: Sun, 2 Sep 2018 07:50:25 -0400 From: Stephen Frost To: Dave Peticolas Cc: Adrian Klaver , pgsql-general Subject: Re: locate DB corruption Message-ID: <20180902115025.GC4184@tamriel.snowman.net> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kfjH4zxOES6UT95V" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --kfjH4zxOES6UT95V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, * Dave Peticolas (dave@krondo.com) wrote: > On Sat, Sep 1, 2018 at 5:09 PM Adrian Klaver > wrote: >=20 > > On 09/01/2018 04:45 PM, Dave Peticolas wrote: > > > > > Well restoring from a backup of the primary does seem to have fixed t= he > > > issue with the corrupt table. > > > > Pretty sure it was not that the table was corrupt but that transaction > > information was missing from pg_clog. > > > > In a previous post you mentioned you ran tar to do the snapshot of > > $PG_DATA. > > > > Was there any error when tar ran the backup that caused you problems? >=20 > Well the interesting thing about that is that although the bad table was > originally discovered in a DB restored from a snapshot, I subsequently > discovered it in the real-time clone of the primary from which the backups > are made. So somehow the clone's table became corrupted. The same table w= as > not corrupt on the primary, but I have discovered an error on the primary > -- it's in the thread I posted today. These events seem correlated in tim= e, > I'll have to mine the logs some more. Has this primary been the primary since inception, or was it promoted to be one at some point after first being built as a replica..? Thanks! Stephen --kfjH4zxOES6UT95V Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJbi86BAAoJEO1sijiDR2RVG14QAJO7kCeipoaJekADhkEx9gKQ tqvxS+ORuCpUGnTxkIeyPd+fv7iiU5sYQxGqysHuZgxbtMZT7EGRUy1GdiYGFHHn 3bQA74yKbv+ZFFbkCPN4iFEvlVwjRGqNmOdoTmUa6h4SlOvhO5e+EgGnHC0ftVI0 BsX+FXNCo9VIODBnVYs1dvYKOJX65NCdZvOBAkihNPM84aQ4p7om2vborc747plf xSTxWHd0Ju+yUJOkYiUlRPAQkIDMA9ioJApHHcwz1mLSUClI4SwAPN79gITSutsO E6bSfPUZHOTWKXuPNZ8smkN35lc8xhz1L5PNvHb1phfv1RPLFtNW8z097P+4QD9W W+b7YkMZbMEWGxX3biOFjGZI97uyivjv6qT1xYyGpRlp9DvV2aGI8kkhci4e2o9E DBdULI1kUR9dZ59klCf4JLdPNXxKWdUM4GpDUkwF/c6PtMSlBJ/Ckb2v1hgERkOb +KdUiVOMHVJ45pJS42Xt2FgOKgObHrYFtuuBqP4e6G+Or0skM/cF0WAg+SA5vlvq yaAAl1Lo+qwEdvCOZOwi4a3SQfEVQSOcJhbI7wD2txhHs9r/lJbGcvOMWMDRhcfo m1UBkgppf60eqPKQJ9hP6MEDM+qWUTGRcYCPaeUYQJv9UKRJCYMxmKx1Xlj1o7EZ UpDWIKAj6hbzyYurpYGJ =hsJt -----END PGP SIGNATURE----- --kfjH4zxOES6UT95V--