Re: PITR

Поиск
Список
Период
Сортировка
От Ron Johnson
Тема Re: PITR
Дата
Msg-id CANzqJaDxU6hGwN-GYkD7FrE=MZuKiG248Cx9jfJMyZoec4+CRw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PITR  (Rui DeSousa <rui.desousa@icloud.com>)
Список pgsql-admin
On Sat, May 18, 2024 at 7:42 AM Rui DeSousa <rui.desousa@icloud.com> wrote:

On May 17, 2024, at 7:35 AM, Rajesh Kumar <rajeshkumar.dba09@gmail.com> wrote:

I want to verify one thing. If I am logging only ddl and if somebody update data incorrectly and if we don't know the time, can we do pitr or not?

I think everyone misunderstood what you meant by logging only DDL.  I’m under the impression that you’re only logging DDL to the log file and not DML thus you don’t know when the event occurred but you do have valid backup and WAL files to go with it.

Yes, you can restore it will just take a little guess work.  If you know what you are looking for then start a recovery and look for the data that you want.

 i.e. We deleted client ‘X’ and want to restore client ‘X’ data to last state but don’t know when it was deleted.  
 
The problem is that PG PITR is "all or nothing".  You can't PITR restore a single database, schema or table.  Thus, you'd need to restore the whole instance to a separate, new instance.  That's easy on AWS, but not so much in a (locked down, stove-piped) corporate environment.

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: ERROR: must be owner of table - ALTER TABLE
Следующее
От: Teja Jakkidi
Дата:
Сообщение: Query_id is not being populated for all the pids