From 401de9c8bef9c77dd25ba6c111094bba14d470d8 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 30 Jun 2005 00:00:52 +0000 Subject: 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. --- src/backend/commands/dbcommands.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/backend/commands/dbcommands.c') 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 /* -- cgit v1.2.3