Re: pgsql: Document that a CHECKPOINT before taking a file system snapshot

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pgsql: Document that a CHECKPOINT before taking a file system snapshot
Дата
Msg-id 201011250301.oAP314S19309@momjian.us
обсуждение исходный текст
Ответ на Re: pgsql: Document that a CHECKPOINT before taking a file system snapshot  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
Список pgsql-committers
C�dric Villemain wrote:
> 2010/11/25 Bruce Momjian <bruce@momjian.us>:
> > Document that a CHECKPOINT before taking a file system snapshot can
> > reduce recovery time.
>
> I didn't follow that on -hackers, but :
>
> * checkpoint take place in the pg_start_backup process (before it
> releases the hand, so before you can start snapshoting)
>
> * we used to issue a checkpoint *before* pg_start_backup to reduce
> pg_start_backup duration  in case you have wal_archiving turn off and
> full_page_write is off, it reduces a bit the IO contention. (or even
> if not I hate seing this pg_start_backup taking seconds/minutes to
> finish)
>
> How the checkpoint before will reduce recovery time ?

This is for using file system snapshots, not PITR or continuous
archiving.  The checkpoint reduces how much WAL has to be replayed.

--
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: pgsql: Properly add new inet_net_ntop file to libpq Makefile.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Remove belt-and-suspenders guards against buffer pin leaks.