Re: guc patch: Make variables fall back to default values

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: guc patch: Make variables fall back to default values
Дата
Msg-id 2377.1173798532@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: guc patch: Make variables fall back to default values  (Joachim Wieland <joe@mcknight.de>)
Ответы Re: guc patch: Make variables fall back to default values  (Joachim Wieland <joe@mcknight.de>)
Список pgsql-patches
Joachim Wieland <joe@mcknight.de> writes:
> On Tue, Mar 13, 2007 at 10:19:54AM -0400, Tom Lane wrote:
>> Well, they *are* strings as long as they're "custom".  Once a
>> DefineCustomFoo has been executed, there (should be) no difference
>> between a "custom" variable and a hard-wired one.

> The code in question is the only place that calls one of the
> DefineCustom*Variable functions. But those functions set
> var->group = CUSTOM_OPTIONS what makes variables look like custom variables
> defined via SQL or the config file but in reality they aren't. Hence the
> confusion of the type assertion.

My point here that you shouldn't be using var->group to make any
semantic choices.  That's supposed to be a label for user convenience,
nothing else.

            regards, tom lane

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

Предыдущее
От: Joachim Wieland
Дата:
Сообщение: Re: guc patch: Make variables fall back to default values
Следующее
От: Joachim Wieland
Дата:
Сообщение: Re: guc patch: Make variables fall back to default values