Re: Parsing config files in a directory - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Parsing config files in a directory
Date
Msg-id 200911101359.nAADxDT23610@momjian.us
Whole thread Raw
In response to Re: Parsing config files in a directory  (Simon Riggs <simon@2ndQuadrant.com>)
Responses Re: Parsing config files in a directory
Re: Parsing config files in a directory
List pgsql-hackers
Simon Riggs wrote:
> All of this *also* applies to shared_preload_libraries. We also need to
> be able to specify new load libraries without editing the same darn
> parameter.

And to search_path, though that's even more complex because the order of
the entries is significant.

---------------------------------------------------------------------------


> 
> ---
> 
> On Wed, 2009-10-28 at 22:00 +0000, Simon Riggs wrote:
> > On Tue, 2009-10-27 at 00:38 -0400, Greg Smith wrote:
> > > new feature
> > 
> > One additional point that would be useful is a way to match up the usage
> > of custom_variable_classes with this new style of .conf file processing.
> > 
> > At the moment if you wish to add a custom variable class everybody needs
> > to edit the *same* parameter. Finding which one to edit could be a
> > little difficult with a whole directory to search in.
> > 
> > I propose a new form of processing for that variable: each new parameter
> > instance is added to last one, rather than replacing it.
> > e.g.
> > custom_variable_class = 'x'
> > custom_variable_class = 'y'
> > custom_variable_class = 'z'
> > is equivalent to
> > custom_variable_classes = 'x,y,z'
> > 
> > That allows NewFeatureX to drop in a file called "newfeaturex.conf",
> > which looks like this
> > 
> > custom_variable_class = 'newfeaturex'
> > newfeaturex.param1 = x
> > newfeaturex.param2 = y
> > newfeaturex.param3 = z
> > 
> > This requires no editing of any other files, just a straight drop in.
> > That will make it much easier to produce real installers/deinstallers
> > for add-in modules.
> > 
> -- 
>  Simon Riggs           www.2ndQuadrant.com
> 
> 
> -- 
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers

--  Bruce Momjian  <bruce@momjian.us>        http://momjian.us EnterpriseDB
http://enterprisedb.com
 + If your life is a hard drive, Christ can be your backup. +


pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: accent-insensitive
Next
From: Bruce Momjian
Date:
Subject: Re: Parsing config files in a directory