Re: Units in postgresql.conf -- How to report?

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Albe Laurenz <all(at)adv(dot)magwien(dot)gv(dot)at>
Cc: Peter Eisentraut *EXTERN* <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Units in postgresql.conf -- How to report?
Date: 2006-07-25 21:20:45
Message-ID: 20060725212044.GI83250@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jul 25, 2006 at 08:48:34AM +0200, Albe Laurenz wrote:
> Peter Eisentraut wrote:
> > So assuming we allowed units in postgresql.conf, how would you report
> > them with SHOW?
> >
> > 1. The way they were set (hard)
> >
> > 2. Without units (not user-friendly)
> >
> > 3. Always in base units (seconds or bytes)
> >
> > 4. The largest unit that gives an integer
> >
> > (4) seems the most reasonable to me in terms of interface and
> > implementation.

5. Using whatever units were used in postgresql.conf

> 4. would be the best option for human readers, but it would be a pain
> for
> a script that parses command output.

For scripts I think the best bet would be to go with 3 on
current_setting().
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Larry Rosenman 2006-07-25 21:33:16 Re: Change in Pervasive's PostgreSQL strategy
Previous Message Tom Lane 2006-07-25 21:16:14 Re: effective_cache_size is a real?