| From: | thomas(dot)berger(at)1und1(dot)de |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | BUG #14244: wrong suffix for pg_size_pretty() |
| Date: | 2016-07-12 13:36:38 |
| Message-ID: | 20160712133638.1409.99068@wrigleys.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs pgsql-hackers |
The following bug has been logged on the website:
Bug reference: 14244
Logged by: Thomas Berger
Email address: thomas(dot)berger(at)1und1(dot)de
PostgreSQL version: 9.5.3
Operating system: any
Description:
pg_size_pretty uses the suffix "kB" (kilobyte, 10^3 byte), but the returned
value is "KB", or "KiB" ( kibibyte, 2^10 byte). This is missleading and
should be fixed. See also https://en.wikipedia.org/wiki/Kibibyte
=# select pg_size_pretty(1024000::bigint);
pg_size_pretty
----------------
1000 kB
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Amit Kapila | 2016-07-12 14:09:31 | Re: BUG #14243: pg_basebackup failes by a STATUS_DELETE_PENDING file |
| Previous Message | Alvaro Herrera | 2016-07-12 13:21:28 | Re: Incorrect Spanish error message. |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | AMatveev | 2016-07-12 13:57:57 | One process per session lack of sharing |
| Previous Message | Merlin Moncure | 2016-07-12 13:25:55 | Re: IMPORT FOREIGN SCHEMA can't be run in in pl/pgsql due to INTO |