Reserve the shared memory region during backend startup on Windows, so

Magnus Hagander <magnus@hagander.net>

Commit: a7e587863cab80b8896593f20b41e53d65155932
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-07-24T20:12:42Z
Releases: 9.0.0
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.

Files

PathChange+/−
src/backend/port/win32_shmem.c modified +60 −1
src/backend/postmaster/postmaster.c modified +21 −2
src/include/port/win32.h modified +4 −1