From b9505389e72fa159896287f6ebc359f4d25f566e Mon Sep 17 00:00:00 2001 From: Felix Yuan Date: Thu, 17 Apr 2025 14:39:17 -0700 Subject: [PATCH] Update collector/pg_stat_user_tables.go Co-authored-by: Ben Kochie Signed-off-by: Felix Yuan --- collector/pg_stat_user_tables.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collector/pg_stat_user_tables.go b/collector/pg_stat_user_tables.go index 40f0edf7..1fd8c503 100644 --- a/collector/pg_stat_user_tables.go +++ b/collector/pg_stat_user_tables.go @@ -186,8 +186,8 @@ var ( autovacuum_count, analyze_count, autoanalyze_count, - pg_total_relation_size(relid) as total_size, - pg_table_size(relid) as table_only_size + pg_indexes_size(relid) as indexes_size, + pg_table_size(relid) as table_size FROM pg_stat_user_tables` )