]> granicus.if.org Git - postgresql/commit
Reserve the shared memory region during backend startup on Windows, so
authorMagnus Hagander <magnus@hagander.net>
Tue, 11 Aug 2009 11:51:22 +0000 (11:51 +0000)
committerMagnus Hagander <magnus@hagander.net>
Tue, 11 Aug 2009 11:51:22 +0000 (11:51 +0000)
commitf85de25433023b023a1632e8269713aee4f78600
treeef85c20c9fa929ede2d5dca0a2ead566a24d0026
parentd2c3dbf186cc749a4167762674329253d8a28375
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