diff --git a/pkg/statements/sql/table_indexes.sql b/pkg/statements/sql/table_indexes.sql index 438374e2c..3434033cd 100644 --- a/pkg/statements/sql/table_indexes.sql +++ b/pkg/statements/sql/table_indexes.sql @@ -1,6 +1,6 @@ SELECT indexname AS index_name, - pg_size_pretty(pg_table_size((schemaname || '.' || indexname)::regclass)) AS index_size, + pg_size_pretty(pg_table_size(('"' || schemaname || '"."' || indexname || '"')::regclass)) AS index_size, indexdef AS index_definition FROM pg_indexes