diff options
| author | Tom Lane | 2005-06-30 00:00:52 +0000 |
|---|---|---|
| committer | Tom Lane | 2005-06-30 00:00:52 +0000 |
| commit | 401de9c8bef9c77dd25ba6c111094bba14d470d8 (patch) | |
| tree | 738800a9089309f559c51ac55de740b55cb0ec4d /src/include | |
| parent | b5f7cff84f57a189ed5c9dd59efe8d2568649d0d (diff) | |
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/include')
| -rw-r--r-- | src/include/postmaster/bgwriter.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/postmaster/bgwriter.h b/src/include/postmaster/bgwriter.h index dc1260de182..3cdfef1750f 100644 --- a/src/include/postmaster/bgwriter.h +++ b/src/include/postmaster/bgwriter.h @@ -5,7 +5,7 @@ * * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/include/postmaster/bgwriter.h,v 1.5 2005/03/04 20:21:06 tgl Exp $ + * $PostgreSQL: pgsql/src/include/postmaster/bgwriter.h,v 1.6 2005/06/30 00:00:52 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -23,7 +23,7 @@ extern int CheckPointWarning; extern void BackgroundWriterMain(void); -extern void RequestCheckpoint(bool waitforit); +extern void RequestCheckpoint(bool waitforit, bool warnontime); extern bool ForwardFsyncRequest(RelFileNode rnode, BlockNumber segno); extern void AbsorbFsyncRequests(void); |
