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

Commit11abd6c

Browse files
committed
Renumber CHECKPOINT_* flags.
Commit7dbb606 added a new CHECKPOINT_FLUSH_ALL flag. As thatcommit needed to be backpatched I didn't change the numeric values ofthe existing flags as that could lead to nastly problems if anyexternal code issued checkpoints. That's not a concern on master, sorenumber them there.Also add a comment about CHECKPOINT_FLUSH_ALL aboveCreateCheckPoint().
1 parent7dbb606 commit11abd6c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7892,6 +7892,7 @@ LogCheckpointEnd(bool restartpoint)
78927892
*CHECKPOINT_FORCE: force a checkpoint even if no XLOG activity has occurred
78937893
*since the last one (implied by CHECKPOINT_IS_SHUTDOWN or
78947894
*CHECKPOINT_END_OF_RECOVERY).
7895+
*CHECKPOINT_FLUSH_ALL: also flush buffers of unlogged tables.
78957896
*
78967897
* Note: flags contains other bits, of interest here only for logging purposes.
78977898
* In particular note that this routine is synchronous and does not pay

‎src/include/access/xlog.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,13 +248,13 @@ extern bool XLOG_DEBUG;
248248
* recovery */
249249
#defineCHECKPOINT_IMMEDIATE0x0004/* Do it without delays */
250250
#defineCHECKPOINT_FORCE0x0008/* Force even if no activity */
251+
#defineCHECKPOINT_FLUSH_ALL0x0010/* Flush all pages, including those
252+
* belonging to unlogged tables */
251253
/* These are important to RequestCheckpoint */
252-
#defineCHECKPOINT_WAIT0x0010/* Wait for completion */
254+
#defineCHECKPOINT_WAIT0x0020/* Wait for completion */
253255
/* These indicate the cause of a checkpoint request */
254-
#defineCHECKPOINT_CAUSE_XLOG0x0020/* XLOG consumption */
255-
#defineCHECKPOINT_CAUSE_TIME0x0040/* Elapsed time */
256-
#defineCHECKPOINT_FLUSH_ALL0x0080/* Flush all pages, including those
257-
* belonging to unlogged tables */
256+
#defineCHECKPOINT_CAUSE_XLOG0x0040/* XLOG consumption */
257+
#defineCHECKPOINT_CAUSE_TIME0x0080/* Elapsed time */
258258

259259
/* Checkpoint statistics */
260260
typedefstructCheckpointStatsData

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp