We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed7025b commit 6ca556aCopy full SHA for 6ca556a
mamonsu/plugins/pgsql/databases.py
@@ -20,7 +20,7 @@ class Databases(Plugin):
20
query_invalid_indexes = "SELECT count (*) " \
21
"FROM pg_catalog.pg_index i LEFT JOIN pg_catalog.pg_locks l " \
22
"ON (i.indexrelid = l.relation) " \
23
- "WHERE i.indisvalid = false AND l.relation IS NULL;"
+ "WHERE NOT (i.indisvalid AND i.indisready) AND l.relation IS NULL;"
24
25
# queries for zabbix agent
26
query_agent_discovery = "SELECT json_build_object ('data',json_agg(json_build_object('{#DATABASE}',d.datname)))" \
0 commit comments