Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: thomas(dot)berger(at)1und1(dot)de
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
Date: 2016-07-30 00:26:25
Message-ID: 20160730002625.GB22405@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Fri, Jul 29, 2016 at 08:18:38PM -0400, Bruce Momjian wrote:
> However, that is not the end of the story. Things have moved forward
> since 2006 and there is now firm support for either KB or KiB to be
> 1024-based units. This blog post explains the current state of prefix
> specification:
>
> http://pchelp.ricmedia.com/kilobytes-megabytes-gigabytes-terabytes-explained/
>
> and here is a summary for 1000/1024-based units:
>
> Kilobyte (Binary, JEDEC) KB 1024
> Kilobyte (Decimal, Metric) kB 1000
> Kibibyte (Binary, IEC) KiB 1024

Oh, also, here is a Wikipedia article that has a nice chart on the top
right:

https://en.wikipedia.org/wiki/Binary_prefix

and a post that explains some of the background:

http://superuser.com/questions/938234/size-of-files-in-windows-os-its-kb-or-kb

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter Geoghegan 2016-07-30 00:37:21 Re: BUG #14150: Attempted to delete invisible tuple
Previous Message Bruce Momjian 2016-07-30 00:18:38 Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2016-07-30 01:47:33 Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()
Previous Message Bruce Momjian 2016-07-30 00:18:38 Re: [BUGS] BUG #14244: wrong suffix for pg_size_pretty()