Re: Patch pg_is_in_backup()

Поиск
Список
Период
Сортировка
От Bernd Helmle
Тема Re: Patch pg_is_in_backup()
Дата
Msg-id C729A6E0B91CEDC4ADEDCE6C@apophis.local
обсуждение исходный текст
Ответ на Re: Patch pg_is_in_backup()  (Gilles Darold <gilles.darold@dalibo.com>)
Список pgsql-hackers

--On 2. Februar 2012 18:47:35 +0100 Gilles Darold <gilles.darold@dalibo.com> 
wrote:

> For now the internal function BackupInProgress() only return a boolean.
> I like the idea that pg_is_in_backup() just works as pg_is_in_recovery()
> do. I mean it doesn't return the timestamp of the recovery starting time
> but only true or false.
>
> Maybe we can have an other function that will return all information
> available in the backup_label file ?

I've seen customers using pg_read_file() to do exactly this. E.g. they are 
searching for the START TIME value, if backup_label is present, to report the 
backup start.

-- 
Thanks
Bernd


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

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: NULL's support in SP-GiST
Следующее
От: Magnus Hagander
Дата:
Сообщение: Re: Patch pg_is_in_backup()