Commit 4c63b1f8 authored by Bruce Momjian's avatar Bruce Momjian

Prevent autovacuum from zeroing damaged pages.

parent 7d40942a
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.12 2006/03/05 15:58:35 momjian Exp $ * $PostgreSQL: pgsql/src/backend/postmaster/autovacuum.c,v 1.13 2006/03/06 05:14:19 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -125,6 +125,9 @@ autovac_start(void) ...@@ -125,6 +125,9 @@ autovac_start(void)
if (!AutoVacuumingActive()) if (!AutoVacuumingActive())
return 0; return 0;
/* Even if zero_damaged_pages is true, we don't want autovacuum zeroing. */
zero_damaged_pages = false;
/* /*
* Do nothing if too soon since last autovacuum exit. This limits how * Do nothing if too soon since last autovacuum exit. This limits how
* often the daemon runs. Since the time per iteration can be quite * often the daemon runs. Since the time per iteration can be quite
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment