mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Cast relpages to bigint, preventing out-of-range SQL error in PostgreSQL. Closes #1038
This commit is contained in:
@@ -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,'+
|
||||
|
||||
Reference in New Issue
Block a user