pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: Dave Peticolas <dave@krondo.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: locate DB corruption
Date: Sun, 2 Sep 2018 07:50:25 -0400
Message-ID: <20180902115025.GC4184@tamriel.snowman.net> (raw)
In-Reply-To: <CAPRbp046jzSvMy+0HQMFgVvBYpMNMjgTyi2a62_MR+FZKvGqvg@mail.gmail.com>
References: <CAPRbp04SbFObUL1m_geh3U57bAHE3gy0Q1Zuc0B_bCcUtsG5VQ@mail.gmail.com>
	<cc53d86f-2ffc-ec82-f78d-5c47a771c864@aklaver.com>
	<CAPRbp07Pq-CkkXqg0et+XrG+Hbb5St+7XPFK_=u3qtO=3HTnRg@mail.gmail.com>
	<e0334b31-f0ca-b0c2-6224-b07fe10037a8@aklaver.com>
	<CAPRbp06n15=fdybHRJm8jct3Fj+2wi0nv5MeHtyKDWyzN4gBag@mail.gmail.com>
	<CAPRbp046knJdd0fKV6GmHzPoVx13Dh9BG-9aL1R5F5s3DoJjPg@mail.gmail.com>
	<a53fd1f1-cc41-32af-cb70-c95e196decc7@aklaver.com>
	<CAPRbp046jzSvMy+0HQMFgVvBYpMNMjgTyi2a62_MR+FZKvGqvg@mail.gmail.com>

Greetings,

* Dave Peticolas (dave@krondo.com) wrote:
> On Sat, Sep 1, 2018 at 5:09 PM Adrian Klaver <adrian.klaver@aklaver.com>
> wrote:
> 
> > On 09/01/2018 04:45 PM, Dave Peticolas wrote:
> >
> > > Well restoring from a backup of the primary does seem to have fixed the
> > > 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?
> 
> 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 was
> 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 time,
> 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

Attachments:

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

view thread (10+ messages)  latest in thread

Message-ID: <20180902115025.GC4184@tamriel.snowman.net>
Permalink:  ../20180902115025.GC4184@tamriel.snowman.net/
Also on:    postgresql.org/message-id/20180902115025.GC4184@tamriel.snowman.net

 · 

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: sfrost@snowman.net, dave@krondo.com, adrian.klaver@aklaver.com
  Subject: Re: locate DB corruption
  In-Reply-To: <20180902115025.GC4184@tamriel.snowman.net>
  References: <CAPRbp04SbFObUL1m_geh3U57bAHE3gy0Q1Zuc0B_bCcUtsG5VQ@mail.gmail.com> <cc53d86f-2ffc-ec82-f78d-5c47a771c864@aklaver.com> <CAPRbp07Pq-CkkXqg0et+XrG+Hbb5St+7XPFK_=u3qtO=3HTnRg@mail.gmail.com> <e0334b31-f0ca-b0c2-6224-b07fe10037a8@aklaver.com> <CAPRbp06n15=fdybHRJm8jct3Fj+2wi0nv5MeHtyKDWyzN4gBag@mail.gmail.com> <CAPRbp046knJdd0fKV6GmHzPoVx13Dh9BG-9aL1R5F5s3DoJjPg@mail.gmail.com> <a53fd1f1-cc41-32af-cb70-c95e196decc7@aklaver.com> <CAPRbp046jzSvMy+0HQMFgVvBYpMNMjgTyi2a62_MR+FZKvGqvg@mail.gmail.com> <20180902115025.GC4184@tamriel.snowman.net>

* 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