Skip to content

Commit bf88c06

Browse files
committed
fix: use pg_indexes_size for PostgreSQL index size
Closes #2653
1 parent 2b4ec13 commit bf88c06

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎source/dbconnection.pas‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8202,7 +8202,7 @@ procedure TPGConnection.FetchDbObjects(db: String; var Cache: TDBObjectList);
82028202
DataLenClause := 'NULL';
82038203
// See https://www.heidisql.com/forum.php?t=34635
82048204
if Parameters.FullTableStatus and (ServerVersionInt >= 80100) then
8205-
IndexLenClause := 'pg_relation_size(format(''%I.%I'', n.nspname, c.relname))::bigint'
8205+
IndexLenClause := 'pg_indexes_size(format(''%I.%I'', n.nspname, c.relname))::bigint'
82068206
else
82078207
IndexLenClause := 'relpages::bigint * '+SIZE_KB.ToString;
82088208
if ServerVersionInt >= 110000 then

0 commit comments

Comments
 (0)