From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Converting postgresql.conf parameters to kilobytes |
Date: | 2004-06-04 14:25:41 |
Message-ID: | 87n03j1jtm.fsf@stark.xeocode.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Marko Karppinen <marko(at)karppinen(dot)fi> writes:
> Frank Wiles wrote:
> > shared_buffers = 10000 ( shared_buffers in pages )
> > shared_buffers = 100M ( 100 MBs of shared_buffers )
> > shared_buffers = 2048K ( 2MBs of shared_buffers )
>
> I don't know if this is pedantic or just obsessive-compulsive,
> but I think it should be MB and KB (or more properly, kB)
> instead of just M and K, to distinguish from kilopages
> or megapages.
Well, that's not how other tools handle it. I would suggest being consistent
with the rest of the more user friendly unix toolset that does this. GNU dd
for example uses these suffixes:
> BLOCKS and BYTES may be followed by the following multiplicative suffixes:
> xM M, c 1, w 2, b 512, kB 1000, K 1024, MB 1000*1000, M 1024*1024,
> GB 1000*1000*1000, G 1024*1024*1024, and so on for T, P, E, Z, Y.
(Though in this case the base unit is unambiguous because of the parameter.
But other examples are the output of ls -lh, the -c and -n parameters of head,
etc)
--
greg
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2004-06-04 16:42:07 | Re: [pgsql-advocacy] Slony-I goes BETA |
Previous Message | Tom Lane | 2004-06-04 13:57:48 | Re: upper() / lower() regression test case needed? |