summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorMagnus Hagander2009-08-11 11:51:22 +0000
committerMagnus Hagander2009-08-11 11:51:22 +0000
commitf85de25433023b023a1632e8269713aee4f78600 (patch)
treeef85c20c9fa929ede2d5dca0a2ead566a24d0026 /src/include
parentd2c3dbf186cc749a4167762674329253d8a28375 (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.h5
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);