mirror of
https://github.com/postgres/postgres.git
synced 2025-07-31 22:04:40 +03:00
Use SetConfigOption() to turn off "zero_damaged_pages" in autovacuum.
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.13 2006/03/06 05:14:19 momjian Exp $
|
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.14 2006/03/07 03:03:09 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -126,7 +126,7 @@ autovac_start(void)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Even if zero_damaged_pages is true, we don't want autovacuum zeroing. */
|
/* Even if zero_damaged_pages is true, we don't want autovacuum zeroing. */
|
||||||
zero_damaged_pages = false;
|
SetConfigOption("zero_damaged_pages", "false", PGC_SUSET, PGC_S_SESSION);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Do nothing if too soon since last autovacuum exit. This limits how
|
* Do nothing if too soon since last autovacuum exit. This limits how
|
||||||
|
Reference in New Issue
Block a user