Re: detecting binary backup in progress

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: detecting binary backup in progress
Дата
Msg-id CAA-aLv4VxEtO88s5q_HqM93Bp8CmVMSMgmx6PiYRc2LCgecwJA@mail.gmail.com
обсуждение исходный текст
Ответ на detecting binary backup in progress  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
On 31 May 2013 18:38, Joe Conway <mail@joeconway.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I can check for the presence of $PGDATA/backup_label in order to detect
> a backup in progress (i.e. pg_start_backup() has been run and
> pg_stop_backup() has not yet been run).
>
> However there is a period of time after pg_start_backup() is first
> executed to when it completes, during which backup_label file does not
> exist yet, but the backup has essentially been started. Is there any
> way to detect this state?

pg_is_in_backup()

--
Thom



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: detecting binary backup in progress
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: removing PD_ALL_VISIBLE