Re: Why BgWriterDelay is fixed?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why BgWriterDelay is fixed?
Дата
Msg-id 19472.1351527523@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Why BgWriterDelay is fixed?  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
Jeff Janes <jeff.janes@gmail.com> writes:
> The value hard coded into the C code is the starting value, or
> default.  It is not a constant.

> Indeed, I don't think that value is even used.  I think that upon
> start-up, that value gets set to the default listed in the guc.c file
> (which is also 200), and so the value listed in the bgwriter.c file is
> merely a mnemonic to remind people editing the file what the default
> value is.

It's partly that, and mostly to ensure that the variable has some valid
value even before the configuration file has been read.  The latter
consideration might or might not be important for BgWriterDelay in
particular; but it is important for some GUC variables, so we tend to
follow the coding pattern of initializing GUC variables to their
defaults whenever practical.

            regards, tom lane


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

Предыдущее
От: Peter Geoghegan
Дата:
Сообщение: Re: Why BgWriterDelay is fixed?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Access to postgresql query optimizer output