@@ -326,7 +326,7 @@ static XLogRecPtr RedoStartLSN = {0, 0};
326
326
*
327
327
* CheckpointLock: must be held to do a checkpoint or restartpoint (ensures
328
328
* only one checkpointer at a time; currently, with all checkpoints done by
329
- * thebgwriter , this is just pro forma).
329
+ * thecheckpointer , this is just pro forma).
330
330
*
331
331
*----------
332
332
*/
@@ -411,7 +411,7 @@ typedef struct XLogCtlData
411
411
412
412
/*
413
413
* archiveCleanupCommand is read from recovery.conf but needs to be in
414
- * shared memory so that thebgwriter process can access it.
414
+ * shared memory so that thecheckpointer process can access it.
415
415
*/
416
416
char archiveCleanupCommand [MAXPGPATH ];
417
417
@@ -1837,7 +1837,7 @@ XLogWrite(XLogwrtRqst WriteRqst, bool flexible, bool xlog_switch)
1837
1837
Write -> lastSegSwitchTime = (pg_time_t )time (NULL );
1838
1838
1839
1839
/*
1840
- *Signal bgwriter to start a checkpoint if we've consumed too
1840
+ *Request a checkpoint if we've consumed too
1841
1841
* much xlog since the last one. For speed, we first check
1842
1842
* using the local copy of RedoRecPtr, which might be out of
1843
1843
* date; if it looks like a checkpoint is needed, forcibly
@@ -2023,8 +2023,8 @@ XLogFlush(XLogRecPtr record)
2023
2023
/*
2024
2024
* During REDO, we are reading not writing WAL. Therefore, instead of
2025
2025
* trying to flush the WAL, we should update minRecoveryPoint instead. We
2026
- * test XLogInsertAllowed(), not InRecovery, because we needthe bgwriter
2027
- * to act this way too, and because whenthe bgwriter tries to write the
2026
+ * test XLogInsertAllowed(), not InRecovery, because we needcheckpointer
2027
+ * to act this way too, and because whenit tries to write the
2028
2028
* end-of-recovery checkpoint, it should indeed flush.
2029
2029
*/
2030
2030
if (!XLogInsertAllowed ())
@@ -5856,7 +5856,7 @@ pg_is_xlog_replay_paused(PG_FUNCTION_ARGS)
5856
5856
*
5857
5857
* We keep this in XLogCtl, not a simple static variable, so that it can be
5858
5858
* seen by processes other than the startup process. Note in particular
5859
- * that CreateRestartPoint is executed in thebgwriter .
5859
+ * that CreateRestartPoint is executed in thecheckpointer .
5860
5860
*/
5861
5861
static void
5862
5862
SetLatestXTime (TimestampTz xtime )
@@ -6464,14 +6464,14 @@ StartupXLOG(void)
6464
6464
6465
6465
/*
6466
6466
* Let postmaster know we've started redo now, so that it can launch
6467
- *bgwriter to perform restartpoints. We don't bother during crash
6467
+ *checkpointer to perform restartpoints. We don't bother during crash
6468
6468
* recovery as restartpoints can only be performed during archive
6469
6469
* recovery. And we'd like to keep crash recovery simple, to avoid
6470
6470
* introducing bugs that could affect you when recovering after crash.
6471
6471
*
6472
6472
* After this point, we can no longer assume that we're the only
6473
6473
* process in addition to postmaster! Also, fsync requests are
6474
- * subsequently to be handled by thebgwriter , not locally.
6474
+ * subsequently to be handled by thecheckpointer , not locally.
6475
6475
*/
6476
6476
if (InArchiveRecovery && IsUnderPostmaster )
6477
6477
{
@@ -7969,8 +7969,8 @@ CheckPointGuts(XLogRecPtr checkPointRedo, int flags)
7969
7969
* It must determine whether the checkpoint represents a safe restartpoint or
7970
7970
* not. If so, the checkpoint record is stashed in shared memory so that
7971
7971
* CreateRestartPoint can consult it. (Note that the latter function is
7972
- * executed by thebgwriter , while this one will be executed by the startup
7973
- * process.)
7972
+ * executed by thecheckpointer , while this one will be executed by the
7973
+ *startup process.)
7974
7974
*/
7975
7975
static void
7976
7976
RecoveryRestartPoint (const CheckPoint * checkPoint )