index 442eeb1e3fe7779421c26a971d231def72597993..92b48502dd39d5eb84ec4619617906c570819714 100644 (file)
@@ -48,11 +48,12 @@ select count(*) >= 0 as ok from pg_file_settings;
t
(1 row)
--- There will surely be at least one rule
-select count(*) > 0 as ok from pg_hba_file_rules;
- ok
-----
- t
+-- There will surely be at least one rule, with no errors.
+select count(*) > 0 as ok, count(*) FILTER (WHERE error IS NOT NULL) = 0 AS no_err
+ from pg_hba_file_rules;
+ ok | no_err
+----+--------
+ t | t
(1 row)
-- There will surely be at least one active lock
index 4980f07be25c6041f7eb84c911f6c453c751b390..77e48ef7cccc4224dbc4f1fe44e98a31fb887164 100644 (file)
@@ -25,8 +25,9 @@ select count(*) = 0 as ok from pg_cursors;
select count(*) >= 0 as ok from pg_file_settings;
--- There will surely be at least one rule
-select count(*) > 0 as ok from pg_hba_file_rules;
+-- There will surely be at least one rule, with no errors.
+select count(*) > 0 as ok, count(*) FILTER (WHERE error IS NOT NULL) = 0 AS no_err
+ from pg_hba_file_rules;
-- There will surely be at least one active lock
select count(*) > 0 as ok from pg_locks;