Re: Converting postgresql.conf parameters to kilobytes - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Converting postgresql.conf parameters to kilobytes
Date
Msg-id 200405311311.i4VDBgR07545@candle.pha.pa.us
Whole thread Raw
In response to Re: Converting postgresql.conf parameters to kilobytes  (Shridhar Daithankar <shridhar@frodo.hserus.net>)
Responses Re: Converting postgresql.conf parameters to kilobytes  (Shridhar Daithankar <shridhar@frodo.hserus.net>)
List pgsql-hackers
Shridhar Daithankar wrote:
> On Sunday 30 May 2004 21:33, Tom Lane wrote:
> > Shridhar Daithankar <shridhar@frodo.hserus.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?
> 
> Right now following are measured in pages
> wal_buffers
> shared_buffers 
> effective_cachesize 
> 
> Following are in kbs
> work_mem 
> maintenance_work_mem 
> max_stack_depth 
> 
> while rest of the memory parameters are in kb. I thought being uniform would 
> be good. Besides it will make it independent of page size as well.

Sounds good to me.  How are you handling cases where the value has to be
a multiple of page size --- rounding or throwing an error?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Jan Wieck
Date:
Subject: Re: pg_dump --comment?
Next
From: Jan Wieck
Date:
Subject: Re: Nested xacts: looking for testers and review