pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: André Hänsel <andre@webkr.de>
Cc: 'Paul Förster' <paul.foerster@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: How to use pg_waldump?
Date: Fri, 1 May 2020 19:27:00 -0400
Message-ID: <20200501232700.GA31289@alvherre.pgsql> (raw)
In-Reply-To: <0c5401d61fbe$e4d945a0$ae8bd0e0$@webkr.de>

On 2020-May-01, André Hänsel wrote:

> Paul Förster wrote:
> 
> > maybe try with another WAL file or files?
> > 
> > Works for me...
> 
> Ok, I tried it with all the files in the pg_wal directory and it
> worked with one: the first one (lexicographically/hex).

The other files have not yet been written, so pg_waldump cannot read
them.  If you can find out what was the name of the file that it had
before the recycling, you can rename (a copy of) the file to that, and
then pg_waldump will be able to read it.  (You can try brute-forcing the
search for the correct file name).

If you have an archive_command-generated archive of WALs, or
pg_receivewal, those files should all be readable by pg_waldump.

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





view thread (9+ messages)

Message-ID: <20200501232700.GA31289@alvherre.pgsql>
Permalink:  ../20200501232700.GA31289@alvherre.pgsql/
Also on:    postgresql.org/message-id/20200501232700.GA31289@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, andre@webkr.de, paul.foerster@gmail.com
  Subject: Re: How to use pg_waldump?
  In-Reply-To: <20200501232700.GA31289@alvherre.pgsql>
  References: <0c5401d61fbe$e4d945a0$ae8bd0e0$@webkr.de> <20200501232700.GA31289@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