Re: Units in postgresql.conf

From: "Marko Kreen" <markokr(at)gmail(dot)com>
To: "Peter Eisentraut" <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Units in postgresql.conf
Date: 2006-07-20 12:13:50
Message-ID: e51f66da0607200513j69be3572hc24e0e11b1deb35f@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 7/20/06, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> One frequent source of confusion are the different units that the parameters
> in postgresql.conf use. shared_buffers is in 8 kB, work_mem is in 1 kB;
> bgwriter_delay is in milliseconds, checkpoint_warning is in seconds.
> Obviously, we can't change that without inconveniencing a lot of users.
>
> 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?

+1. In addition, that would make conffile self-documenting.

--
marko

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message moises 2006-07-20 12:36:53 Transaction Speed
Previous Message Gavin Sherry 2006-07-20 12:10:57 Re: Units in postgresql.conf