]> granicus.if.org Git - postgresql/commit
Commonalize process startup code.
authorAndres Freund <andres@anarazel.de>
Tue, 13 Jan 2015 12:12:37 +0000 (13:12 +0100)
committerAndres Freund <andres@anarazel.de>
Tue, 13 Jan 2015 23:33:14 +0000 (00:33 +0100)
commit31c453165b5a656044ce1dbce89f5828c1c7e23c
treeccf0a682b390361d581a7116d6244d7feb80cd45
parent2be82dcf17a18511df5153bcafe67a9c1387be1e
Commonalize process startup code.

Move common code, that was duplicated in every postmaster child/every
standalone process, into two functions in miscinit.c.  Not only does
that already result in a fair amount of net code reduction but it also
makes it much easier to remove more duplication in the future. The
prime motivation wasn't code deduplication though, but easier addition
of new common code.
15 files changed:
src/backend/bootstrap/bootstrap.c
src/backend/postmaster/autovacuum.c
src/backend/postmaster/bgworker.c
src/backend/postmaster/bgwriter.c
src/backend/postmaster/checkpointer.c
src/backend/postmaster/pgarch.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/postmaster/startup.c
src/backend/postmaster/syslogger.c
src/backend/postmaster/walwriter.c
src/backend/replication/walreceiver.c
src/backend/tcop/postgres.c
src/backend/utils/init/miscinit.c
src/include/miscadmin.h