mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Allow background writing to be shut down by setting limit values to zero.
This does not disable the bgwriter process: it still has to wake up often enough to collect fsync requests from backends in a timely fashion. But it responds to the recent gripe about not being able to prevent the disk from being spun up constantly.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
* Written by Peter Eisentraut <peter_e@gmx.net>.
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.244 2004/10/16 19:08:38 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.245 2004/10/17 22:01:51 tgl Exp $
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
*/
|
||||
@ -1248,7 +1248,7 @@ static struct config_int ConfigureNamesInt[] =
|
||||
NULL
|
||||
},
|
||||
&BgWriterDelay,
|
||||
200, 10, 5000, NULL, NULL
|
||||
200, 10, 10000, NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
@ -1257,7 +1257,7 @@ static struct config_int ConfigureNamesInt[] =
|
||||
NULL
|
||||
},
|
||||
&BgWriterPercent,
|
||||
1, 1, 100, NULL, NULL
|
||||
1, 0, 100, NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
@ -1266,7 +1266,7 @@ static struct config_int ConfigureNamesInt[] =
|
||||
NULL
|
||||
},
|
||||
&BgWriterMaxPages,
|
||||
100, 1, 1000, NULL, NULL
|
||||
100, 0, 1000, NULL, NULL
|
||||
},
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user