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 837db9e commit 8308a17Copy full SHA for 8308a17
mamonsu/plugins/pgsql/databases.py
@@ -21,7 +21,7 @@ class Databases(Plugin):
21
"FROM pg_catalog.pg_class, pg_catalog.pg_index " \
22
"WHERE pg_catalog.pg_index.indisvalid = false " \
23
"AND pg_catalog.pg_index.indexrelid = pg_catalog.pg_class.oid " \
24
- "AND pg_catalog.pg_index.indexrelid NOT IN (SELECT DISTINCT relation FROM pg_catalog.pg_locks);"
+ "AND pg_catalog.pg_index.indexrelid NOT IN (SELECT DISTINCT relation FROM pg_catalog.pg_locks WHERE relation IS NOT NULL);"
25
26
# queries for zabbix agent
27
query_agent_discovery = "SELECT json_build_object ('data',json_agg(json_build_object('{#DATABASE}',d.datname)))" \
0 commit comments