Re: Units in postgresql.conf

From: Darcy Buskermolen <darcy(at)wavefire(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Cc: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Subject: Re: Units in postgresql.conf
Date: 2006-07-20 15:59:05
Message-ID: 200607200859.06572.darcy@wavefire.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thursday 20 July 2006 05:04, Jonah H. Harris wrote:
> On 7/20/06, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > I think it would be useful to allow units to be added to these settings,
> > for example
> >
> > shared_buffers = 1000kB
> > checkpoint_warning = 30s
> >
> > This would also allow
> >
> > shared_buffers = 512MB
> >
> > which is a bit cumbersome to calculate right now (you'd need = 65536).
> >
> > I haven't thought yet how to parse or implement this, but would people
> > find this useful?
>
> I agree, a lot of newbies have issues with the configuration file. I
> have a tiny bit of code (about 20 lines I think) that will handle K,
> M, and G suffixes for memory. It would be equally easy to add S for
> seconds, ....
>
> In my code, if no suffix existed, I'd just revert to the default
> behavior. This is probably what we'd want to do in PostgreSQL as
> well.
>
> The only issue in PostgreSQL is knowing what the unit conversion and
> scaling factor is for each parameter (8K, 1K, milliseconds, etc);
> though, this wouldn't be hard to add at all.

Yummy, Yummy, I'd say this would be a big boost in ability to tune for a lot
of people.

--
Darcy Buskermolen
Wavefire Technologies Corp.

http://www.wavefire.com
ph: 250.717.0200
fx: 250.763.1759

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2006-07-20 16:22:02 Re: Units in postgresql.conf
Previous Message Zdenek Kotala 2006-07-20 15:51:27 Re: Units in postgresql.conf