diff options
| author | Magnus Hagander | 2009-07-24 20:12:42 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2009-07-24 20:12:42 +0000 |
| commit | a7e587863cab80b8896593f20b41e53d65155932 (patch) | |
| tree | f9b5ab9e5e7d58783ab60233a43862075b248d1c /src/include | |
| parent | 5e22994127bd67f268c0d9622b4e3d103c18a15b (diff) | |
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.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/port/win32.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/port/win32.h b/src/include/port/win32.h index 9ace851ebb..4c0cc10463 100644 --- a/src/include/port/win32.h +++ b/src/include/port/win32.h @@ -1,4 +1,4 @@ -/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.88 2009/06/11 14:49:12 momjian Exp $ */ +/* $PostgreSQL: pgsql/src/include/port/win32.h,v 1.89 2009/07/24 20:12:42 mha Exp $ */ #if defined(_MSC_VER) || defined(__BORLANDC__) #define WIN32_ONLY_COMPILER @@ -288,6 +288,9 @@ extern int pgwin32_is_admin(void); extern int pgwin32_is_service(void); #endif +/* in backend/port/win32_shmem.c */ +extern int pgwin32_ReserveSharedMemoryRegion(HANDLE); + /* in port/win32error.c */ extern void _dosmaperr(unsigned long); |
