mirror of
https://github.com/postgres/postgres.git
synced 2025-10-24 01:29:19 +03:00
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
This commit is contained in:
@@ -256,7 +256,7 @@ typedef struct RmgrData
|
||||
extern const RmgrData RmgrTable[];
|
||||
|
||||
/*
|
||||
* Exported to support xlog switching from bgwriter
|
||||
* Exported to support xlog switching from checkpointer
|
||||
*/
|
||||
extern pg_time_t GetLastSegSwitchTime(void);
|
||||
extern XLogRecPtr RequestXLogSwitch(void);
|
||||
|
||||
Reference in New Issue
Block a user