[check_postgres] negative result from hot_standby_delay action
Filip Rembiałkowski
filip.rembialkowski at gmail.com
Thu Nov 15 18:48:42 UTC 2012
Hello.
hot_standby_delay sometimes returns negative value.
I know the reason behind this - quite naturally the delay between querying
master ad slave can cause this.
I think it makes sense to fix it in check_postgres.pl by something like
$result = 0 if $result < 0;
All in all, it is logically impossible that slave has processed more WAL
segments than master :-)
thanks,
Filip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.endcrypt.com/pipermail/check_postgres/attachments/20121115/aef36084/attachment.html>
More information about the Check_postgres
mailing list