diff options
author | Euler Taveira de Oliveira | 2011-11-27 13:10:18 +0000 |
---|---|---|
committer | Greg Sabino Mullane | 2011-11-27 13:10:18 +0000 |
commit | 62517b40d2bbf3e624e97eea027ef21cec3cf99e (patch) | |
tree | 8a1f1c300ccc46bd17f2e71ad404294d41355e35 /check_postgres.pl | |
parent | 8d5efef70c5efcb99a24102d0c1eaf6f8ed09efb (diff) |
Fix xlog formula: ff000000 not ffffffff
See http://eulerto.blogspot.com/2011/11/understanding-wal-nomenclature.html
Diffstat (limited to 'check_postgres.pl')
-rwxr-xr-x | check_postgres.pl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/check_postgres.pl b/check_postgres.pl index 273c75f5a..2bfdd709f 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -4702,7 +4702,7 @@ sub check_hot_standby_delay { next if ! defined $location; my ($x, $y) = split(/\//, $location); - $moffset = (hex("ffffffff") * hex($x)) + hex($y); + $moffset = (hex('ff000000') * hex($x)) + hex($y); $saved_db = $db if ! defined $saved_db; } @@ -4722,12 +4722,12 @@ sub check_hot_standby_delay { if (defined $receive) { my ($a, $b) = split(/\//, $receive); - $s_rec_offset = (hex("ffffffff") * hex($a)) + hex($b); + $s_rec_offset = (hex('ff000000') * hex($a)) + hex($b); } if (defined $replay) { my ($a, $b) = split(/\//, $replay); - $s_rep_offset = (hex("ffffffff") * hex($a)) + hex($b); + $s_rep_offset = (hex('ff000000') * hex($a)) + hex($b); } $saved_db = $db if ! defined $saved_db; @@ -9508,6 +9508,8 @@ Items not specifically attributed are by GSM (Greg Sabino Mullane). Use the full path when getting sequence information for same_schema. (Greg Sabino Mullane; reported by Cindy Wise) + Fix the formula for calculating xlog positions (Euler Taveira de Oliveira) + Better ordering of output for bloat check - make indexes as important as tables (Greg Sabino Mullane; reported by Jens Wilke) |