Re: Patch pg_is_in_backup()

Поиск
Список
Период
Сортировка
От Marti Raudsepp
Тема Re: Patch pg_is_in_backup()
Дата
Msg-id CABRT9RAo_xTOVdBAEDqzcP+QvoHa0SZW1Ud1p3vjmA5tJUnYLw@mail.gmail.com
обсуждение исходный текст
Ответ на Patch pg_is_in_backup()  (Gilles Darold <gilles.darold@dalibo.com>)
Ответы Re: Patch pg_is_in_backup()  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Patch pg_is_in_backup()  (Gilles Darold <gilles.darold@dalibo.com>)
Re: Patch pg_is_in_backup()  (Magnus Hagander <magnus@hagander.net>)
Список pgsql-hackers
On Mon, Jan 30, 2012 at 20:33, Gilles Darold <gilles.darold@dalibo.com> wrote:
> After some time searching for a Pg system administration function like
> pg_is_in_recovery(), let's say pg_is_in_backup(), I couldn't find one.
> The minor patch attached here adds this administrative function that can
> be used with others backup control functions. This is a very little
> patch outside documentation because the function is only a wrapper to
> the internal BackupInProgress() function, just like pg_is_in_recovery()
> is calling RecoveryInProgress().

I think it would be more useful to have a function that returns a
timestamp when the backup started. That way, it's possible to write a
generic monitoring script that alerts the sysadmin only when a backup
has been running for too long, but is silent for well-behaved backups.

Regards,
Marti


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

Предыдущее
От: Marti Raudsepp
Дата:
Сообщение: Re: [PATCH] Fix float8 parsing of denormal values (on some platforms?)
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: [GENERAL] pg_dump -s dumps data?!