pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Nick Renders <postgres@arcict.com>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: Unable to startup postgres: Could not read from file "pg_clog/00EC"
Date: Wed, 5 Feb 2020 08:51:16 -0300
Message-ID: <20200205115116.GA7298@alvherre.pgsql> (raw)
In-Reply-To: <41881D5F-360A-440D-AD8C-B9F582C5A0AF@arcict.com>

On 2020-Feb-05, Nick Renders wrote:

> Is there anything specific I should check in our postgres installation /
> database to make sure it is running ok now? Anyway to see what the
> consequences were of purging that one pg_clog file?

Losing pg_clog files is pretty bad, and should not happen; then again,
this might have been something else (ie. the file was maybe not lost).
That said, wrongly overwriting files is even worse.

By zeroing an existing pg_clog file, you marked a bunch of transactions
as aborted.  Your data is now probably inconsistent, if not downright
corrupt.  I would be looking for my most recent backup ...

If you're very lucky, your database might be pg_dumpable.  I would try
that, followed by restoring it in a separate clean instance and seeing
what happens.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (5+ messages)  latest in thread

Message-ID: <20200205115116.GA7298@alvherre.pgsql>
Permalink:  ../20200205115116.GA7298@alvherre.pgsql/
Also on:    postgresql.org/message-id/20200205115116.GA7298@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, postgres@arcict.com
  Subject: Re: Unable to startup postgres: Could not read from file "pg_clog/00EC"
  In-Reply-To: <20200205115116.GA7298@alvherre.pgsql>
  References: <41881D5F-360A-440D-AD8C-B9F582C5A0AF@arcict.com> <20200205115116.GA7298@alvherre.pgsql>

* 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