Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit806a2ae

Browse files
Split work of bgwriter between 2 processes: bgwriter and checkpointer.
bgwriter is now a much less important process, responsible for pagecleaning duties only. checkpointer is now responsible for checkpointsand so has a key role in shutdown. Later patches will correct docreferences to the now old idea that bgwriter performs checkpoints.Has beneficial effect on performance at high write rates, but mainlyrefactoring to more easily allow changes for power reduction bysimplifying previously tortuous code around required to allow pagecleaning and checkpointing to time slice in the same process.Patch by me, Review by Dickson Guedes
1 parent589adb8 commit806a2ae

File tree

11 files changed

+124
-987
lines changed

11 files changed

+124
-987
lines changed

‎src/backend/bootstrap/bootstrap.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ AuxiliaryProcessMain(int argc, char *argv[])
315315
caseBgWriterProcess:
316316
statmsg="writer process";
317317
break;
318+
caseCheckpointerProcess:
319+
statmsg="checkpointer process";
320+
break;
318321
caseWalWriterProcess:
319322
statmsg="wal writer process";
320323
break;
@@ -415,6 +418,11 @@ AuxiliaryProcessMain(int argc, char *argv[])
415418
BackgroundWriterMain();
416419
proc_exit(1);/* should never return */
417420

421+
caseCheckpointerProcess:
422+
/* don't set signals, checkpointer has its own agenda */
423+
CheckpointerMain();
424+
proc_exit(1);/* should never return */
425+
418426
caseWalWriterProcess:
419427
/* don't set signals, walwriter has its own agenda */
420428
InitXLOGAccess();

‎src/backend/postmaster/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ top_builddir = ../../..
1313
include$(top_builddir)/src/Makefile.global
1414

1515
OBJS = autovacuum.o bgwriter.o fork_process.o pgarch.o pgstat.o postmaster.o\
16-
syslogger.o walwriter.o
16+
syslogger.o walwriter.o checkpointer.o
1717

1818
include$(top_srcdir)/src/backend/common.mk

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp