Re: pg_log deleted - what to do?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: pg_log deleted - what to do?
Дата
Msg-id Pine.LNX.4.21.0010012113280.1031-100000@peter.localdomain
обсуждение исходный текст
Ответ на Re: pg_log deleted - what to do?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: pg_log deleted - what to do?  (Ralf Tschiersch <ralf@net-service.de>)
Re: pg_log deleted - what to do?  (Ralf Tschiersch <ralf@net-service.de>)
Список pgsql-admin
Bruce Momjian writes:

> Can the user rename the /data directory, do initdb, save the pg_log
> file, move the old /data back into place, add the new pg_log, and do a
> backup of his data?

My understanding is that pg_log contains flags about which transactions
have committed, from which is inferred what tuples are valid.  So
theoretically you could set "all transactions have committed" in pg_log
and pick out the tuples you like from the tables (after having gotten past
the horribly corrupted indexes).  But that seems like a pretty complicated
undertaking in any case.


--
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


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

Предыдущее
От: Ralf Tschiersch
Дата:
Сообщение: Re: pg_log deleted - what to do?
Следующее
От: Ralf Tschiersch
Дата:
Сообщение: Re: pg_log deleted - what to do?