Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d51c27

Browse files
committed
Use SetConfigOption() to turn off "zero_damaged_pages" in autovacuum.
1 parent79d25cf commit8d51c27

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
return0;
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)

[8]ページ先頭

©2009-2025 Movatter.jp