Re: [HACKERS] Point in Time Recovery

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [HACKERS] Point in Time Recovery
Дата
Msg-id 200407220354.i6M3smv21365@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Point in Time Recovery  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > Agreed, it might not be possible, but your report does point out a
> > limitation in our implementation --- that a shutdown database contains
> > more information than a backup and the archive logs.  That is not
> > intuitive.
>
> That's only because you are clinging to the broken assumption that
> pg_xlog/ is part of the database, rather than part of the logs.
> Separate that out as a distinct entity, and all gets better.

Imagine this.   I stop the server.  I have a tar backup and a copy of
the archive.  I should be able to take them to another machine and
recover the system to the point I stopped.

You are saying I need a copy of pg_xlog directory too, and I need to
remove pg_xlog after I untar the data directory and put the saved
pg_xlog into there before I recover.

Should we create a server-side function that forces all WAL files to the
archive, including partially written ones.  Maybe that fixes the problem
with people deleting pg_xlog before they untar.  You tell them to run
the function before recovery.  If the system can't be started, the it is
possible the WAL files are no good too, not sure.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Point in Time Recovery
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: [HACKERS] Point in Time Recovery