Re: Patch pg_is_in_backup() - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: Patch pg_is_in_backup()
Date
Msg-id CAFj8pRCW6EnNJGBqMciUX+AZWqtRZOtFHXKj8VsJKdZsXM1oig@mail.gmail.com
Whole thread Raw
In response to Re: Patch pg_is_in_backup()  (Marti Raudsepp <marti@juffo.org>)
List pgsql-hackers
2012/2/2 Marti Raudsepp <marti@juffo.org>:
> 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.

+1

Pavel

>
> Regards,
> Marti
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers


pgsql-hackers by date:

Previous
From: hubert depesz lubaczewski
Date:
Subject: Re: [GENERAL] pg_dump -s dumps data?!
Next
From: Robert Haas
Date:
Subject: Re: spgist text_ops and LIKE