aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2011-11-01 18:48:47 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2011-11-01 18:48:47 +0000
commitf3ebaad45b473f3a53de2cd2a5252cd653aa46f3 (patch)
treedee4a262549251c7694c0e20aee3aa674daaadd1 /src/backend/commands/dbcommands.c
parent3ba182056faac66012aad8dedf2cb50ba511d989 (diff)
downloadpostgresql-f3ebaad45b473f3a53de2cd2a5252cd653aa46f3.tar.gz
postgresql-f3ebaad45b473f3a53de2cd2a5252cd653aa46f3.zip
Comment changes to show bgwriter no longer performs checkpoints.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r--src/backend/commands/dbcommands.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c
index 2c0581481b0..4551db7fb01 100644
--- a/src/backend/commands/dbcommands.c
+++ b/src/backend/commands/dbcommands.c
@@ -847,7 +847,7 @@ dropdb(const char *dbname, bool missing_ok)
pgstat_drop_database(db_id);
/*
- * Tell bgwriter to forget any pending fsync and unlink requests for files
+ * Tell checkpointer to forget any pending fsync and unlink requests for files
* in the database; else the fsyncs will fail at next checkpoint, or
* worse, it will delete files that belong to a newly created database
* with the same OID.
@@ -855,9 +855,9 @@ dropdb(const char *dbname, bool missing_ok)
ForgetDatabaseFsyncRequests(db_id);
/*
- * Force a checkpoint to make sure the bgwriter has received the message
+ * Force a checkpoint to make sure the checkpointer has received the message
* sent by ForgetDatabaseFsyncRequests. On Windows, this also ensures that
- * the bgwriter doesn't hold any open files, which would cause rmdir() to
+ * background procs don't hold any open files, which would cause rmdir() to
* fail.
*/
RequestCheckpoint(CHECKPOINT_IMMEDIATE | CHECKPOINT_FORCE | CHECKPOINT_WAIT);
@@ -1088,7 +1088,7 @@ movedb(const char *dbname, const char *tblspcname)
* process any pending unlink requests. Otherwise, the check for existing
* files in the target directory might fail unnecessarily, not to mention
* that the copy might fail due to source files getting deleted under it.
- * On Windows, this also ensures that the bgwriter doesn't hold any open
+ * 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);