mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
Rename CHECKPOINT_IMMEDIATE to CHECKPOINT_FAST.
The new name more accurately reflects the effects of this flag on a requested checkpoint. Checkpoint-related log messages (i.e., those controlled by the log_checkpoints configuration parameter) will now say "fast" instead of "immediate", too. Likewise, references to "immediate" checkpoints in the documentation have been updated to say "fast". This is preparatory work for a follow-up commit that will add a MODE option to the CHECKPOINT command. Author: Christoph Berg <myon@debian.org> Discussion: https://postgr.es/m/aDnaKTEf-0dLiEfz%40msg.df7cb.de
This commit is contained in:
@@ -570,7 +570,7 @@ CreateDatabaseUsingFileCopy(Oid src_dboid, Oid dst_dboid, Oid src_tsid,
|
||||
* any CREATE DATABASE commands.
|
||||
*/
|
||||
if (!IsBinaryUpgrade)
|
||||
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE |
|
||||
RequestCheckpoint(CHECKPOINT_FAST | CHECKPOINT_FORCE |
|
||||
CHECKPOINT_WAIT | CHECKPOINT_FLUSH_UNLOGGED);
|
||||
|
||||
/*
|
||||
@@ -673,7 +673,7 @@ CreateDatabaseUsingFileCopy(Oid src_dboid, Oid dst_dboid, Oid src_tsid,
|
||||
* strategy that avoids these problems.
|
||||
*/
|
||||
if (!IsBinaryUpgrade)
|
||||
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE |
|
||||
RequestCheckpoint(CHECKPOINT_FAST | CHECKPOINT_FORCE |
|
||||
CHECKPOINT_WAIT);
|
||||
}
|
||||
|
||||
@@ -1870,7 +1870,7 @@ dropdb(const char *dbname, bool missing_ok, bool force)
|
||||
* Force a checkpoint to make sure the checkpointer has received the
|
||||
* message sent by ForgetDatabaseSyncRequests.
|
||||
*/
|
||||
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
|
||||
RequestCheckpoint(CHECKPOINT_FAST | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
|
||||
|
||||
/* Close all smgr fds in all backends. */
|
||||
WaitForProcSignalBarrier(EmitProcSignalBarrier(PROCSIGNAL_BARRIER_SMGRRELEASE));
|
||||
@@ -2120,7 +2120,7 @@ movedb(const char *dbname, const char *tblspcname)
|
||||
* On Windows, this also ensures that background procs don't hold any open
|
||||
* files, which would cause rmdir() to fail.
|
||||
*/
|
||||
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT
|
||||
RequestCheckpoint(CHECKPOINT_FAST | CHECKPOINT_FORCE | CHECKPOINT_WAIT
|
||||
| CHECKPOINT_FLUSH_UNLOGGED);
|
||||
|
||||
/* Close all smgr fds in all backends. */
|
||||
@@ -2252,7 +2252,7 @@ movedb(const char *dbname, const char *tblspcname)
|
||||
* any unlogged operations done in the new DB tablespace before the
|
||||
* next checkpoint.
|
||||
*/
|
||||
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
|
||||
RequestCheckpoint(CHECKPOINT_FAST | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
|
||||
|
||||
/*
|
||||
* Force synchronous commit, thus minimizing the window between
|
||||
|
||||
@@ -500,7 +500,7 @@ DropTableSpace(DropTableSpaceStmt *stmt)
|
||||
* mustn't delete. So instead, we force a checkpoint which will clean
|
||||
* out any lingering files, and try again.
|
||||
*/
|
||||
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
|
||||
RequestCheckpoint(CHECKPOINT_FAST | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
|
||||
|
||||
/*
|
||||
* On Windows, an unlinked file persists in the directory listing
|
||||
|
||||
Reference in New Issue
Block a user