Re: Extract transactions from wals ??

Поиск
Список
Период
Сортировка
От Marc Millas
Тема Re: Extract transactions from wals ??
Дата
Msg-id CADX_1aY2XWTW7qRih9KfWU_zBGa5Q0NfPdxGh2CHL+P9cXgfxQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Extract transactions from wals ??  (Laurenz Albe <laurenz.albe@cybertec.at>)
Ответы Re: Extract transactions from wals ??
Re: Extract transactions from wals ??
Список pgsql-general
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



On Thu, Nov 21, 2019 at 5:16 PM Laurenz Albe <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

В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Help with authentication on Debain/Ubuntu installation
Следующее
От: Sébastien Bihorel
Дата:
Сообщение: Re: Tablespace setup issue