last_vacuum and last_analyze only available in 8.2. Thanks to Robert Treat.
authorGreg Sabino Mullane <greg@endpoint.com>
Sun, 9 Dec 2007 18:11:55 +0000 (13:11 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Sun, 9 Dec 2007 18:11:55 +0000 (13:11 -0500)
check_postgres.pl

index 576a0493dc70abebf25e8ec25a8b139eea98ff2c..5c4ba71dc5db1074801b290f4bb1e19338efd423 100755 (executable)
@@ -253,8 +253,8 @@ my $checksumre = qr{^[a-f0-9]{32}$};
 
 ## If in test mode, verify that we can run each requested action
 my %testaction = (
-                                 last_vacuum   => 'ON: stats_row_level',
-                                 last_analyze  => 'ON: stats_row_level',
+                                 last_vacuum   => 'ON: stats_row_level VERSION: 8.2',
+                                 last_analyze  => 'ON: stats_row_level VERSION: 8.2',
                                  database_size => 'VERSION: 8.1',
                                  relation_size => 'VERSION: 8.1',
                                  table_size    => 'VERSION: 8.1',