Skip to content

Commit 8d51c27

Browse files
committed
Use SetConfigOption() to turn off "zero_damaged_pages" in autovacuum.
1 parent 79d25cf commit 8d51c27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/postmaster/autovacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.13 2006/03/06 05:14:19 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.14 2006/03/07 03:03:09 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -126,7 +126,7 @@ autovac_start(void)
126126
return 0;
127127

128128
/* Even if zero_damaged_pages is true, we don't want autovacuum zeroing. */
129-
zero_damaged_pages = false;
129+
SetConfigOption("zero_damaged_pages", "false", PGC_SUSET, PGC_S_SESSION);
130130

131131
/*
132132
* Do nothing if too soon since last autovacuum exit. This limits how

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy