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.
2 parents 60dd239 + dc69d46 commit 5bba946Copy full SHA for 5bba946
mamonsu/plugins/pgsql/instance.py
@@ -70,7 +70,7 @@ def run(self, zbx):
70
if Pooler.server_version_greater('12.0'):
71
all_items = self.Items + self.Items_pg_12
72
73
- params = ['sum({0}) as {0}'.format(x[0]) for x in all_items]
+ params = ['sum(COALESCE({0}, 0)) as {0}'.format(x[0]) for x in all_items]
74
result = Pooler.query('select {0} from \
75
pg_catalog.pg_stat_database'.format(
76
', '.join(params)))
0 commit comments