Reserve the shared memory region during backend startup on Windows, so
Magnus Hagander <magnus@hagander.net>
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
| Path | Change | +/− |
|---|---|---|
| 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 |