Re: detecting binary backup in progress

Поиск
Список
Период
Сортировка
От Christoph Moench-Tegeder
Тема Re: detecting binary backup in progress
Дата
Msg-id 20130601094339.GA2064@elch.exwg.net
обсуждение исходный текст
Ответ на detecting binary backup in progress  (Joe Conway <mail@joeconway.com>)
Ответы Re: detecting binary backup in progress  (Joe Conway <mail@joeconway.com>)
Список pgsql-hackers
## Joe Conway (mail@joeconway.com):

> 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?

When I did some research on the very same question just a few weeks
ago, I settled for external locks (lockfile, pg_advisory_lock(), ...,
depending on your exact situation) around the backup-taking code.

Regards,
Christoph

-- 
Spare Space



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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: Combo xids
Следующее
От: Soroosh Sardari
Дата:
Сообщение: Which table stored in which file in PGDATA/base/[db-oid]