From: | "Thomas Swan" <tswan(at)idigx(dot)com> |
---|---|
To: | "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | pgsql(at)mohawksoft(dot)com, "Mark Kirkwood " <markir(at)paradise(dot)net(dot)nz>, "Tom Lane " <tgl(at)sss(dot)pgh(dot)pa(dot)us>, rm_pg(at)cheapcomplexdevices(dot)com, "Christopher Browne " <cbbrowne(at)acm(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: PostgreSQL configuration |
Date: | 2004-04-12 14:37:44 |
Message-ID: | 32492.199.222.14.2.1081780664.squirrel@www.idigx.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
<quote who="Bruce Momjian">
> The only other idea I can think of is to create a new pg_path.conf file.
> It would have the same format as postgresql.conf, but contain
> information about /data location, config file location, and perhaps
> pg_xlog location.
>
> The file would be created by special flags to initdb, and once created,
> would have to be used instead of pgdata for postmaster startup.
>
Bruce,
I thought the idea was to *reduce* the number of config files and provide
a unified configuration file. Ideally, the unified configuration file
could eliminate the need for environment variables altogether.
If I understand this correctly, the author was adding the ability to do
this, not remove the default behavior.
A single configuration point (which can be changed with a commandline
switch) with the ability to include would be an exceptionally versatile
asset for postgresql. Maybe relocating PID would be a bad idea and
someone could clobber their database, but that could be addressed with
LARGE WARNING in that config file where the option is available.
Outside of the unified config file argument. "Configuration includes"
give postgresql the ability to have shared settings. You could have a
shared pg_hba.conf and test all other manner of settings with a set of
config files (sort_mem, shared_buffers, etc.) that say include a
standard_pg_hba.conf to control access.
The single config file argument has the capacity to emulate the existing
default behavior.
# SINGLE DEFAULT CONFIG FILE
Include /var/lib/data/postgresql/postgresql.conf
Include /var/lib/data/postgresql/pg_hba.conf
Include /var/lib/data/postgresql/pg_ident.conf
or
#SINGLE DEFAULT CONFIG FILE
include options /var/lib/postgresql/data/postgresql.conf
include access /var/lib/postgresql/data/pg_hba.conf
include identity_map /var/lib/postgresql/data/pg_ident.conf
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2004-04-12 14:55:39 | Re: PostgreSQL configuration |
Previous Message | Stephan Szabo | 2004-04-12 14:36:36 | Re: PostgreSQL configuration |