From 806a2aee3791244bf0f916729bfdb5489936e068 Mon Sep 17 00:00:00 2001 From: Simon Riggs Date: Tue, 1 Nov 2011 17:14:47 +0000 Subject: Split work of bgwriter between 2 processes: bgwriter and checkpointer. bgwriter is now a much less important process, responsible for page cleaning duties only. checkpointer is now responsible for checkpoints and so has a key role in shutdown. Later patches will correct doc references to the now old idea that bgwriter performs checkpoints. Has beneficial effect on performance at high write rates, but mainly refactoring to more easily allow changes for power reduction by simplifying previously tortuous code around required to allow page cleaning and checkpointing to time slice in the same process. Patch by me, Review by Dickson Guedes --- src/include/postmaster/bgwriter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include/postmaster') diff --git a/src/include/postmaster/bgwriter.h b/src/include/postmaster/bgwriter.h index eaf2206f5e..c05901e929 100644 --- a/src/include/postmaster/bgwriter.h +++ b/src/include/postmaster/bgwriter.h @@ -23,6 +23,7 @@ extern int CheckPointWarning; extern double CheckPointCompletionTarget; extern void BackgroundWriterMain(void); +extern void CheckpointerMain(void); extern void RequestCheckpoint(int flags); extern void CheckpointWriteDelay(int flags, double progress); -- cgit v1.2.1