Re: utilities to rebuild commit logs from wal

From: Chris Travers <chris(dot)travers(at)adjust(dot)com>
To:
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: utilities to rebuild commit logs from wal
Date: 2018-06-24 14:27:06
Message-ID: CAN-RpxDXPvuEQQeb0NyawN_zmAK11CdGVhXTnBPZ54c3BDZHrA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sun, Jun 24, 2018 at 5:53 AM Bruce Momjian <bruce(at)momjian(dot)us> wrote:

> On Fri, Jun 22, 2018 at 10:49:58AM +0200, Chris Travers wrote:
> > Before we reinvent the wheel here, does anyone know of utilities to build
> > commit logs from wal segments? Or even to just fill with commits?
> >
> > I figure it is worth asking before I write one.
>
> Uh, what are commit log? pg_waldump output?
>

I was missing pg_xact segments and wanting to rebuild them following a
major filesystem crash.

I ended up just writing copying in "all commits" because rollbacks were
very rare on these dbs. I am still curious if there is an easy way if one
is missing a late segment to generate from WAL if enough WALs are stored
and the WAL level is high enough.

It's not the end of the world but this has helped me to get data about 10
hours more recent than latest backup. So.... so far so good.

>
> --
> Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
> EnterpriseDB http://enterprisedb.com
>
> + As you are, so once was I. As I am, so you will be. +
> + Ancient Roman grave inscription +
>

--
Best Regards,
Chris Travers
Database Administrator

Tel: +49 162 9037 210 | Skype: einhverfr | www.adjust.com
Saarbrücker Straße 37a, 10405 Berlin

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2018-06-24 16:42:55 Re: Using JSONB directly from application
Previous Message Pavel Stehule 2018-06-24 14:17:23 Re: Desirability of client-side expressions in psql?