OSDN Git Service

Change win32 child-death tracking code to use a threadpool to wait for
authorMagnus Hagander <magnus@hagander.net>
Fri, 26 Oct 2007 21:50:10 +0000 (21:50 +0000)
committerMagnus Hagander <magnus@hagander.net>
Fri, 26 Oct 2007 21:50:10 +0000 (21:50 +0000)
commitbb98b2e27ec35019f00217335e248ee68d17946a
treef40133a745da0d1c7a123682fa3af4dfd4920b94
parentacac68b2bcae818bc8803b8cb8cbb17eee8d5e2b
Change win32 child-death tracking code to use a threadpool to wait for
childprocess deaths instead of using one thread per child. This drastastically
reduces the address space usage and should allow for more backends running.

Also change the win32_waitpid functionality to use an IO Completion Port for
queueing child death notices instead of using a fixed-size array.
src/backend/postmaster/postmaster.c
src/include/port/win32.h