projects
/
check_postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcf901d
)
Support non-standard version strings in the bloat check.
author
Michel Sijmons
<
[email protected]
>
Wed, 2 Feb 2011 22:30:01 +0000
(17:30 -0500)
committer
Greg Sabino Mullane
<
[email protected]
>
Wed, 2 Feb 2011 22:30:01 +0000
(17:30 -0500)
With help from Gurjeet Singh
check_postgres.pl
patch
|
blob
|
blame
|
history
diff --git
a/check_postgres.pl
b/check_postgres.pl
index a9e35eb7839de62fcbca157c55284d0ce242074c..8bca7bd98d083f0951a72378237273469ade48c5 100755
(executable)
--- a/
check_postgres.pl
+++ b/
check_postgres.pl
@@
-2919,7
+2919,8
@@
FROM (
FROM pg_stats s, (
SELECT
BLOCK_SIZE,
- CASE WHEN substring(v,12,3) IN ('8.0','8.1','8.2') THEN 27 ELSE 23 END AS hdr,
+ CASE WHEN SUBSTRING(SPLIT_PART(v, ' ', 2) FROM '#"[0-9]+.[0-9]+#"%' for '#')
+ IN ('8.0','8.1','8.2') THEN 27 ELSE 23 END AS hdr,
CASE WHEN v ~ 'mingw32' OR v ~ '64-bit' THEN 8 ELSE 4 END AS ma
FROM (SELECT version() AS v) AS foo
) AS constants