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

Magnus Hagander <magnus@hagander.net>

Commit: 0a427ab0722fa7d04cec2216b2afab3d5c09116e
Author: Magnus Hagander <magnus@hagander.net>
Date: 2009-08-11T11:51:20Z
Releases: 8.3.8
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