pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Dave Peticolas <dave@krondo.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: locate DB corruption
Date: Sat, 1 Sep 2018 17:09:10 -0700
Message-ID: <a53fd1f1-cc41-32af-cb70-c95e196decc7@aklaver.com> (raw)
In-Reply-To: <CAPRbp046knJdd0fKV6GmHzPoVx13Dh9BG-9aL1R5F5s3DoJjPg@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>

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?


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (10+ messages)  latest in thread

Message-ID: <a53fd1f1-cc41-32af-cb70-c95e196decc7@aklaver.com>
Permalink:  ../a53fd1f1-cc41-32af-cb70-c95e196decc7@aklaver.com/
Also on:    postgresql.org/message-id/a53fd1f1-cc41-32af-cb70-c95e196decc7@aklaver.com

 · 

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: adrian.klaver@aklaver.com, dave@krondo.com
  Subject: Re: locate DB corruption
  In-Reply-To: <a53fd1f1-cc41-32af-cb70-c95e196decc7@aklaver.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>

* 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