Re: Permanent settings

Поиск
Список
Период
Сортировка
От Gregory Stark
Тема Re: Permanent settings
Дата
Msg-id 87fxvoyjbm.fsf@oxford.xeocode.com
обсуждение исходный текст
Ответ на Re: Permanent settings  (Magnus Hagander <magnus@hagander.net>)
Ответы Re: Permanent settings
Re: Permanent settings
Re: Permanent settings
Список pgsql-hackers
"Magnus Hagander" <magnus@hagander.net> writes:

> Yeah, that may actually be a very good way to implement it. I don't like
> the idea of continously appending to an existing file, but if we did have a
> separate file with a tightly controlled format that would be doable.

+1

Separating the automatically written configuration and the explicit user
configuration is definitely the right approach. My experience comes from
Debian where packages editing their own configuration files is verboten.
Otherwise you run into problems reconciling user-made changes and automatic
changes.

The include file method is workable but isn't perfect. What happens if a user
connects with pgadmin and changes a parameter but that parameter is overridden
by a variable in the config file?

The alternative is to have two files and read them both. Then if you change a
variable which is overridden by the other source you can warn that the change
is ineffective.

I think on balance the include file method is so much simpler that I prefer it.

--  Gregory Stark EnterpriseDB          http://www.enterprisedb.com Get trained by Bruce Momjian - ask me about
EnterpriseDB'sPostgreSQL training!
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Fetter
Дата:
Сообщение: Including PL/PgSQL by default
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Including PL/PgSQL by default