非互換
Fujitsu Enterprise Postgres 15では、pg_size_pretty/pg_size_bytes関数でペタバイト(PB)が使用できるように変更します。
pg_size_pretty/pg_size_bytes関数でペタバイト(PB)が使用できません。
postgres=# SELECT size, pg_size_pretty(size), pg_size_pretty(-1 * size) FROM (VALUES (11258449312612352::bigint)) x(size);
size | pg_size_pretty | pg_size_pretty
-------------------+----------------+----------------
11258449312612352 | 10240 TB | -10240 TB
(1 row)
postgres=# SELECT pg_size_bytes('10PB'), pg_size_bytes('-10PB');
ERROR: invalid size: "10PB"
DETAIL: Invalid size unit: "PB".
HINT: Valid units are "bytes", "kB", "MB", "GB", and "TB".
postgres=#pg_size_pretty/pg_size_bytes関数でペタバイト(PB)が使用できます。
postgres=# SELECT size, pg_size_pretty(size), pg_size_pretty(-1 * size) FROM (VALUES (11258449312612352::bigint)) x(size);
size | pg_size_pretty | pg_size_pretty
-------------------+----------------+----------------
11258449312612352 | 10 PB | -10 PB
(1 row)
postgres=# SELECT pg_size_bytes('10PB'), pg_size_bytes('-10PB');
pg_size_bytes | pg_size_bytes
-------------------+--------------------
11258999068426240 | -11258999068426240
(1 row)
postgres=#対処方法
ありません。