Re: Re: In pg_test_fsync, use K(1024) rather than k(1000) for write size units.

Kevin Grittner <kevin.grittner@wicourts.gov>

From: "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
To: "Alvaro Herrera" <alvherre@commandprompt.com>
Cc: "Nicolas Barbier" <nicolas.barbier@gmail.com>, "Peter Eisentraut" <peter_e@gmx.net>, "Bruce Momjian" <bruce@momjian.us>, "pgsql-hackers" <pgsql-hackers@postgresql.org>
Date: 2011-01-27T21:37:47Z
Lists: pgsql-hackers
Alvaro Herrera <alvherre@commandprompt.com> wrote:
> Excerpts from Kevin Grittner's message of jue ene 27 13:22:12
-0300 2011:
>> Bruce Momjian <bruce@momjian.us> wrote:
>>  
>> > http://en.wikipedia.org/wiki/Bytes#Unit_symbol
>> > 
>> > You can see the chart on the right.
>>  
>> According to which, the JEDEC standard requires KB and the IEC
>> standard requires KiB.  What standard led us to use kB instead? 
>> It seems to generally mean 1000 instead of 1024.
> 
>
http://en.wikipedia.org/wiki/International_System_of_Units#Writing_unit_symbols_and_the_values_of_quantities
 
That seems to agree with the other page that k means 10^3, not 2^10
-- or am I missing something?  We are treating it as 2^10 in our
GUCs, aren't we?
 
-Kevin