Re: Converting postgresql.conf parameters to kilobytes

From: Harald Fuchs <hf517(at)protecting(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Converting postgresql.conf parameters to kilobytes
Date: 2004-05-31 12:39:01
Message-ID: puwu2s4vq2.fsf@srv.protecting.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

In article <15702(dot)1085933038(at)sss(dot)pgh(dot)pa(dot)us>,
Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> Shridhar Daithankar <shridhar(at)frodo(dot)hserus(dot)net> writes:
>> I was toying around with idea of converting all the memory related
>> parameters in postgresql.conf to kilobytes for simplicity and
>> uniformity.

> Why is that a good idea?

Two reasons:
1. Some values are in KB, some in 8 KB
2. I find it easier to calculate in KB

I'd like to see the following:
* If the value is purely numeric, treat it as before (to ensure
compatibility with older versions)
* If the value is numeric with a prefix of [KMG], interpret it as KB,
MB, or GB, respectively

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jan Wieck 2004-05-31 13:01:39 Re: pg_dump --comment?
Previous Message Christopher Kings-Lynne 2004-05-31 08:25:46 Re: Can't detect time zone