Re: Add default_val to pg_settings - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: Add default_val to pg_settings
Date
Msg-id 1222349002.4445.786.camel@ebony.2ndQuadrant
Whole thread Raw
In response to Re: Add default_val to pg_settings  (Magnus Hagander <magnus@hagander.net>)
List pgsql-hackers
On Thu, 2008-09-25 at 14:52 +0200, Magnus Hagander wrote:
> Simon Riggs wrote:
> > On Thu, 2008-09-25 at 14:42 +0200, Magnus Hagander wrote:
> >> Having
> >> one column named reset_val and one named boot_val should work, no?
> > 
> > Yes, those names seem very appropriate to me.
> > 
> > Finding the reset_val isn't that tough, IIRC the way the guc assignment
> > works with its "doit" flag.

> I haven't looked at the code.. but there is actually a field in the
> struct called reset_val. It may not be usable, or you may have just
> missed it?

Yah, missed it.  Cool, even easier ;-)

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



pgsql-hackers by date:

Previous
From: "Marko Kreen"
Date:
Subject: Re: PostgreSQL future ideas
Next
From: Simon Riggs
Date:
Subject: Re: Add default_val to pg_settings