Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 4c63b1f

Browse files
committed
Prevent autovacuum from zeroing damaged pages.
1 parent 7d40942 commit 4c63b1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/backend/postmaster/autovacuum.c

+4-1
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.12 2006/03/05 15:58:35 momjian Exp $
13+
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.13 2006/03/06 05:14:19 momjian Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -125,6 +125,9 @@ autovac_start(void)
125125
if (!AutoVacuumingActive())
126126
return 0;
127127

128+
/* Even if zero_damaged_pages is true, we don't want autovacuum zeroing. */
129+
zero_damaged_pages = false;
130+
128131
/*
129132
* Do nothing if too soon since last autovacuum exit. This limits how
130133
* often the daemon runs. Since the time per iteration can be quite

0 commit comments

Comments
 (0)