summaryrefslogtreecommitdiff
path: root/check_postgres.pl
diff options
context:
space:
mode:
authorEuler Taveira de Oliveira2011-11-27 13:10:18 +0000
committerGreg Sabino Mullane2011-11-27 13:10:18 +0000
commit62517b40d2bbf3e624e97eea027ef21cec3cf99e (patch)
tree8a1f1c300ccc46bd17f2e71ad404294d41355e35 /check_postgres.pl
parent8d5efef70c5efcb99a24102d0c1eaf6f8ed09efb (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-xcheck_postgres.pl8
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)