Skip site navigation (1) Skip section navigation (2)

Re: Converting postgresql.conf parameters to kilobytes

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: (view raw, whole thread or download thread mbox)
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,


In response to

pgsql-hackers by date

Next:From: Josh BerkusDate: 2004-06-04 16:42:07
Subject: Re: [pgsql-advocacy] Slony-I goes BETA
Previous:From: Tom LaneDate: 2004-06-04 13:57:48
Subject: Re: upper() / lower() regression test case needed?

Privacy Policy | About PostgreSQL
Copyright © 1996-2018 The PostgreSQL Global Development Group