Skip to content

Commit cd1091a

Browse files
author
Konstantin Knizhnik
committed
Do not save pgstat file in recovery
1 parent 8d5b476 commit cd1091a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/backend/utils/activity/pgstat.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,8 @@ pgstat_write_statsfile(void)
14631463
tmpfile, statfile)));
14641464
unlink(tmpfile);
14651465
}
1466-
wallog_file(statfile);
1466+
if (XLogInsertAllowed())
1467+
wallog_file(statfile);
14671468
}
14681469

14691470
/* helpers for pgstat_read_statsfile() */

0 commit comments

Comments
 (0)