Re: 8.1 system info / admin functions

From: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Neil Conway <neilc(at)samurai(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 8.1 system info / admin functions
Date: 2005-09-14 14:49:01
Message-ID: 4328385D.9060803@pse-consulting.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Stephen Frost wrote:
> * Tom Lane (tgl(at)sss(dot)pgh(dot)pa(dot)us) wrote:
>
>>Neil Conway <neilc(at)samurai(dot)com> writes:
>>
>>>While we're on the subject, the units used by pg_size_pretty() are
>>>incorrect, at least according to the IEC: for example, "MB" is
>>>strictly-speaking one million bytes, not 1024^2 bytes. 1024^2 bytes is 1
>>>MiB (similarly for KiB, GiB, and TiB). I'll take a look at fixing this
>>>as well, barring any objections.
>>
>>[ itch... ] The IEC may think they get to define what's correct, but
>>I don't think that squares with common usage. The only people who
>>think MB is measured in decimal are disk-manufacturer marketroids.
>
>
> That isn't entirely accurate, unfortunately. Telecom also generally
> uses decimal. I'm as unhappy with the current situation as anyone but
> it's not just disk makers & marketing folks, even amoung the computing
> industry.

Telcos don't tend to follow standard computer industry thinking...
Kilo, Mega and so on are used as decimal exponent multiples to SI units,
like meter, gram, .... There's no such thing as a byte as physical unit,
it's completely artificial.

pg_size_pretty follows the standard of "df -h" or "du -h" and so on,
which use the well-known 1024-multiples, as every sane user of bytes will.

Regards,
Andreas

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2005-09-14 15:44:02 Re: About method of PostgreSQL's Optimizer
Previous Message Merlin Moncure 2005-09-14 13:52:47 parameterized fetch