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

Commitff1e1e4

Browse files
committed
Reset minRecoveryPoint at checkpoints, so that we don't uselessly update
it in the control file at crash recovery following an archive recovery.Per Fujii Masao and subsequent discussion.
1 parent4847d59 commitff1e1e4

File tree

1 file changed

+3
-1
lines changed
  • src/backend/access/transam

1 file changed

+3
-1
lines changed

‎src/backend/access/transam/xlog.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.354 2009/12/19 01:32:33 sriggs Exp $
10+
* $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.355 2009/12/30 08:37:21 heikki Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -6882,6 +6882,8 @@ CreateCheckPoint(int flags)
68826882
ControlFile->checkPoint=ProcLastRecPtr;
68836883
ControlFile->checkPointCopy=checkPoint;
68846884
ControlFile->time= (pg_time_t)time(NULL);
6885+
/* crash recovery should always recover to the end of WAL */
6886+
MemSet(&ControlFile->minRecoveryPoint,0,sizeof(XLogRecPtr));
68856887
UpdateControlFile();
68866888
LWLockRelease(ControlFileLock);
68876889

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp