Skip to content

Commit 405af31

Browse files
committed
fix: excluded unused pg_class view
1 parent b5a2ff9 commit 405af31

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mamonsu/plugins/pgsql/databases.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ class Databases(Plugin):
1818
query_age = "select age(datfrozenxid) from pg_catalog.pg_database where datistemplate = false " \
1919
"and datname = :'p1';"
2020
query_invalid_indexes = "SELECT count(*) " \
21-
"FROM pg_catalog.pg_class, pg_catalog.pg_index " \
21+
"FROM pg_catalog.pg_index " \
2222
"WHERE pg_catalog.pg_index.indisvalid = false " \
23-
"AND pg_catalog.pg_index.indexrelid = pg_catalog.pg_class.oid " \
2423
"AND pg_catalog.pg_index.indexrelid NOT IN (SELECT DISTINCT relation FROM pg_catalog.pg_locks WHERE relation IS NOT NULL);"
2524

2625
# queries for zabbix agent

0 commit comments

Comments
 (0)