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

Lines changed: 4 additions & 1 deletion
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)
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