diff options
| author | Magnus Hagander | 2009-08-11 11:51:22 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2009-08-11 11:51:22 +0000 |
| commit | f85de25433023b023a1632e8269713aee4f78600 (patch) | |
| tree | ef85c20c9fa929ede2d5dca0a2ead566a24d0026 /src/include | |
| parent | d2c3dbf186cc749a4167762674329253d8a28375 (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 9ace851ebba..b83dac93173 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.88.2.1 2009/08/11 11:51:22 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); |
