Re: Converting postgresql.conf parameters to kilobytes
От | Greg Stark |
---|---|
Тема | Re: Converting postgresql.conf parameters to kilobytes |
Дата | |
Msg-id | 87n03j1jtm.fsf@stark.xeocode.com обсуждение исходный текст |
Ответ на | Re: Converting postgresql.conf parameters to kilobytes (Marko Karppinen <marko@karppinen.fi>) |
Список | pgsql-hackers |
Marko Karppinen <marko@karppinen.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
В списке pgsql-hackers по дате отправления: