summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikolay Samokhvalov <github2@samokhvalov.com>2022-01-10 04:09:42 -0500
committerGitHub <noreply@github.com>2022-01-10 12:09:42 +0300
commiteebcb8520c526523a0a471887783ba63392d7e24 (patch)
tree5c79890410377599f9544a3510a39c5fc5dfcbe0
parent1df3fb1b85fb69f797d0a23a028722769a668822 (diff)
Postgres: mat. views considered as tables in table size/count chart (#11816)
-rw-r--r--collectors/python.d.plugin/postgres/postgres.chart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/python.d.plugin/postgres/postgres.chart.py b/collectors/python.d.plugin/postgres/postgres.chart.py
index 2acabfe457..bd8f71a666 100644
--- a/collectors/python.d.plugin/postgres/postgres.chart.py
+++ b/collectors/python.d.plugin/postgres/postgres.chart.py
@@ -339,7 +339,7 @@ SELECT
sum(relpages) * current_setting('block_size')::numeric AS table_size,
count(1) AS table_count
FROM pg_class
-WHERE relkind IN ('r', 't');
+WHERE relkind IN ('r', 't', 'm');
""",
}