From: Euler Taveira de Oliveira Date: Sun, 27 Nov 2011 13:10:18 +0000 (-0500) Subject: Fix xlog formula: ff000000 not ffffffff X-Git-Tag: 2.19.0~21 X-Git-Url: http://git.postgresql.org/gitweb/?a=commitdiff_plain;h=62517b40d2bbf3e624e97eea027ef21cec3cf99e;p=check_postgres.git Fix xlog formula: ff000000 not ffffffff See http://eulerto.blogspot.com/2011/11/understanding-wal-nomenclature.html --- 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)