diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-30 00:00:52 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-06-30 00:00:52 +0000 |
commit | 401de9c8bef9c77dd25ba6c111094bba14d470d8 (patch) | |
tree | 738800a9089309f559c51ac55de740b55cb0ec4d /src/backend/commands/dbcommands.c | |
parent | b5f7cff84f57a189ed5c9dd59efe8d2568649d0d (diff) | |
download | postgresql-401de9c8bef9c77dd25ba6c111094bba14d470d8.tar.gz postgresql-401de9c8bef9c77dd25ba6c111094bba14d470d8.zip |
Improve the checkpoint signaling mechanism so that the bgwriter can tell
the difference between checkpoints forced due to WAL segment consumption
and checkpoints forced for other reasons (such as CREATE DATABASE). Avoid
generating 'checkpoints are occurring too frequently' messages when the
checkpoint wasn't caused by WAL segment consumption. Per gripe from
Chris K-L.
Diffstat (limited to 'src/backend/commands/dbcommands.c')
-rw-r--r-- | src/backend/commands/dbcommands.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 96f964fb95f..ba5ce9200b4 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -15,7 +15,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.163 2005/06/29 20:34:13 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/commands/dbcommands.c,v 1.164 2005/06/30 00:00:50 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -542,7 +542,7 @@ createdb(const CreatedbStmt *stmt) * Perhaps if we ever implement CREATE DATABASE in a less cheesy * way, we can avoid this. */ - RequestCheckpoint(true); + RequestCheckpoint(true, false); /* * Set flag to update flat database file at commit. @@ -668,7 +668,7 @@ dropdb(const char *dbname) * open files, which would cause rmdir() to fail. */ #ifdef WIN32 - RequestCheckpoint(true); + RequestCheckpoint(true, false); #endif /* |