Reserve the shared memory region during backend startup on Windows, so
authorMagnus Hagander <magnus@hagander.net>
Fri, 24 Jul 2009 20:12:42 +0000 (20:12 +0000)
committerMagnus Hagander <magnus@hagander.net>
Fri, 24 Jul 2009 20:12:42 +0000 (20:12 +0000)
commite1446b6c81308932f42675e7e36c3174e13f006b
treeed0ad02a46b0e5c0635b7164c86800b479b6ec83
parent2e64c56b84192448841f9d95daf626acad9dff41
Reserve the shared memory region during backend startup on Windows, so
that memory allocated by starting third party DLLs doesn't end up
conflicting with it.

Hopefully this solves the long-time issue with "could not reattach
to shared memory" errors on Win32.

Patch from Tsutomu Yamada and me, based on idea from Trevor Talbot.
src/backend/port/win32_shmem.c
src/backend/postmaster/postmaster.c
src/include/port/win32.h