非互換
FUJITSU Enterprise Postgres 14では、pg_size_pretty関数にマイナス値を渡したら、結果を変更する場合があります。
[例]
=# SELECT size,pg_size_pretty(size),pg_size_pretty(-1 * size) FROM -# (VALUES (10239::bigint),(10240::bigint),(10485247::bigint)) x(size); size | pg_size_pretty | pg_size_pretty ----------+----------------+---------------- 10239 | 10239 bytes | -10239 bytes 10240 | 10 kB | -10 kB 10485247 | 10239 kB | -10 MB (3 rows)
[例]
=# SELECT size,pg_size_pretty(size),pg_size_pretty(-1 * size) FROM -# (VALUES (10239::bigint),(10240::bigint),(10485247::bigint)) x(size); size | pg_size_pretty | pg_size_pretty ----------+----------------+---------------- 10239 | 10239 bytes | -10239 bytes 10240 | 10 kB | -10 kB 10485247 | 10239 kB | -10239 kB (3 rows)
対処方法
ありません。