]> granicus.if.org Git - postgresql/commit
Code review for EXEC_BACKEND changes. Reduce the number of #ifdefs by
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 May 2004 05:13:32 +0000 (05:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 28 May 2004 05:13:32 +0000 (05:13 +0000)
commit1a321f26d88e5c64bccba9d36920aede1e201729
tree43940a3ed5cc754bff68748502550731b0ad19a0
parent37da0ba0e0f2d92857dc62789820d21e177dc00f
Code review for EXEC_BACKEND changes.  Reduce the number of #ifdefs by
about a third, make it work on non-Windows platforms again.  (But perhaps
I broke the WIN32 code, since I have no way to test that.)  Fold all the
paths that fork postmaster child processes to go through the single
routine SubPostmasterMain, which takes care of resurrecting the state that
would normally be inherited from the postmaster (including GUC variables).
Clean up some places where there's no particularly good reason for the
EXEC and non-EXEC cases to work differently.  Take care of one or two
FIXMEs that remained in the code.
19 files changed:
src/backend/access/transam/slru.c
src/backend/access/transam/xlog.c
src/backend/bootstrap/bootstrap.c
src/backend/main/main.c
src/backend/port/ipc_test.c
src/backend/postmaster/pgstat.c
src/backend/postmaster/postmaster.c
src/backend/storage/buffer/buf_init.c
src/backend/storage/ipc/ipci.c
src/backend/storage/lmgr/lmgr.c
src/backend/storage/lmgr/lock.c
src/backend/tcop/postgres.c
src/backend/utils/init/globals.c
src/include/access/slru.h
src/include/bootstrap/bootstrap.h
src/include/miscadmin.h
src/include/pgstat.h
src/include/storage/lock.h
src/include/utils/guc.h