diff --git a/source/dbconnection.pas b/source/dbconnection.pas index bb8fc5d6..79ac7b07 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -6049,7 +6049,7 @@ begin if Parameters.FullTableStatus and (ServerVersionInt >= 80100) then IndexLenClause := 'pg_relation_size('+SchemaTable+')::bigint' else - IndexLenClause := 'relpages * '+SIZE_KB.ToString; + IndexLenClause := 'relpages::bigint * '+SIZE_KB.ToString; Results := GetResults('SELECT *,'+ ' '+DataLenClause+' AS data_length,'+ ' '+IndexLenClause+' AS index_length,'+