Search Postgresql Archives

Re: Why BgWriterDelay is fixed?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Janes <jeff.janes@xxxxxxxxx> 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


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux