pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rob Sargent <robjsargent@gmail.com>
To: Marc Millas <marc.millas@mokadb.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Extract transactions from wals ??
Date: Thu, 21 Nov 2019 10:04:06 -0700
Message-ID: <2679CE43-A0FE-4399-B146-2D3504E55403@gmail.com> (raw)
In-Reply-To: <CADX_1aY2XWTW7qRih9KfWU_zBGa5Q0NfPdxGh2CHL+P9cXgfxQ@mail.gmail.com>
References: <CADX_1abgdEKNaMJxSykE6QJGs0HwrK1YU2ZSzZQv-CngiU_6bQ@mail.gmail.com>
	<355aa1f83ee7bf0b2f5296f46cf231fb1384b409.camel@cybertec.at>
	<CADX_1abk0MyP-xuQw2MSUuhw57KmHnsrKL8YJV5EwcHBh0YPSA@mail.gmail.com>
	<b401ea8ced7c777a536006f598fd7d5be9cea172.camel@cybertec.at>
	<CADX_1aY2XWTW7qRih9KfWU_zBGa5Q0NfPdxGh2CHL+P9cXgfxQ@mail.gmail.com>


> On Nov 21, 2019, at 9:35 AM, Marc Millas <marc.millas@mokadb.com> wrote:
> 
> Hi Laurenz,
> 
> 
> I was writing select from ""table"" as a template. We have to do this for a bunch of tables.
> So, to my understanding, what you suggest is to PITR up to the first timestamp, extract all meaningfull tables, and then pitr to the second timestamp
> so as to be able to script a kind of "diff" between the 2 to get what I want.
> 
> Yes ?
> 
> Marc MILLAS
> Senior Architect
> +33607850334
> www.mokadb.com <http://www.mokadb.com/;
> 
> 
> 
> On Thu, Nov 21, 2019 at 5:16 PM Laurenz Albe <laurenz.albe@cybertec.at <mailto:laurenz.albe@cybertec.at>> wrote:
> On Thu, 2019-11-21 at 17:07 +0100, Marc Millas wrote:
> > you say "extract the data you need"
> > That is exactly the point of my question, as the PITR step was obvious.
> > How to guess "what is the data" I need ??
> 
> Well, you asked for the contents of a table AS OF TIMESTAMP <something>.
> 
> That means you know which table and which timestamp.
> 
> So restore the PostgreSQL cluster to that timestamp, connect
> and SELECT from the table.
> 
> Yours,
> Laurenz Albe
> -- 
> Cybertec | https://www.cybertec-postgresql.com <https://www.cybertec-postgresql.com/;
> 

Are you by any chance logging sql at a sufficient level of detail to allow a restore to PIT and sql replay?

view thread (9+ messages)  latest in thread

Message-ID: <2679CE43-A0FE-4399-B146-2D3504E55403@gmail.com>
Permalink:  ../2679CE43-A0FE-4399-B146-2D3504E55403@gmail.com/
Also on:    postgresql.org/message-id/2679CE43-A0FE-4399-B146-2D3504E55403@gmail.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: robjsargent@gmail.com, marc.millas@mokadb.com, laurenz.albe@cybertec.at
  Subject: Re: Extract transactions from wals ??
  In-Reply-To: <2679CE43-A0FE-4399-B146-2D3504E55403@gmail.com>
  References: <CADX_1abgdEKNaMJxSykE6QJGs0HwrK1YU2ZSzZQv-CngiU_6bQ@mail.gmail.com> <355aa1f83ee7bf0b2f5296f46cf231fb1384b409.camel@cybertec.at> <CADX_1abk0MyP-xuQw2MSUuhw57KmHnsrKL8YJV5EwcHBh0YPSA@mail.gmail.com> <b401ea8ced7c777a536006f598fd7d5be9cea172.camel@cybertec.at> <CADX_1aY2XWTW7qRih9KfWU_zBGa5Q0NfPdxGh2CHL+P9cXgfxQ@mail.gmail.com> <2679CE43-A0FE-4399-B146-2D3504E55403@gmail.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