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 b5a2ff9 commit 405af31Copy full SHA for 405af31
mamonsu/plugins/pgsql/databases.py
@@ -18,9 +18,8 @@ class Databases(Plugin):
18
query_age = "select age(datfrozenxid) from pg_catalog.pg_database where datistemplate = false " \
19
"and datname = :'p1';"
20
query_invalid_indexes = "SELECT count(*) " \
21
- "FROM pg_catalog.pg_class, pg_catalog.pg_index " \
+ "FROM 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 WHERE relation IS NOT NULL);"
25
26
# queries for zabbix agent
0 commit comments