Re: Should we get rid of custom_variable_classes altogether?

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: Should we get rid of custom_variable_classes altogether?
Дата
Msg-id m2ty7ohjm4.fsf@2ndQuadrant.fr
обсуждение исходный текст
Ответ на Re: Should we get rid of custom_variable_classes altogether?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Should we get rid of custom_variable_classes altogether?
Список pgsql-hackers
Tom Lane <tgl@sss.pgh.pa.us> writes:
> Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
>> What I have in mind for extensions now that c_v_c is out would be to be
>> able to declare any GUC in the control file, with default values, and
>> without forcing extension to handle the GUC in its .so — I don't think
>> we have to change the code beside removing the c_v_c checks here.
>
> What's the point of that?  A value in an extension control file isn't
> particularly easily accessible.  You'd basically only see it when
> loading the extension, and that's a scenario in which the existing
> mechanism works just fine.  I see no reason to break existing code
> here.

It's not about the code behavior but user support and packaging.  That
the code does the right DefineCustom calls is very good, but users
should be able to easily alter defaults after installing an extension.
And you're right, putting the setup into the control file is not
providing that.

We could have some extension.conf file.  Appending to postgresql.conf is
not possible from a third-party package per debian's policy, so having
extension/foo.conf instead would make sense here.

But at this point, it's nothing you need to care right now in your patch
I guess, unless you're motivated enough :)

Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Bug with pg_ctl -w/wait and config-only directories
Следующее
От: jreidthompson
Дата:
Сообщение: Re: Bug with pg_ctl -w/wait and config-only directories