summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-02-08 15:46:04 +0000
committerBruce Momjian <bruce@momjian.us>2007-02-08 15:46:04 +0000
commita37b006d89b85c4b8ca92ee53580a1c3ea385be7 (patch)
treede5ced77d655e9b48241c30972c75e65a4e5b7bf /src
parenteea3749d2ebbe14fb0f442445955180326bc6546 (diff)
This patch fixes shared_preload_libraries on Windows hosts. It forces
ach backend to re-load all shared_preload_libraries. Korry Douglas
Diffstat (limited to 'src')
-rw-r--r--src/backend/postmaster/postmaster.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c
index bac1cff46e7..06d8f99a82b 100644
--- a/src/backend/postmaster/postmaster.c
+++ b/src/backend/postmaster/postmaster.c
@@ -37,7 +37,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.517 2007/02/07 16:44:48 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.518 2007/02/08 15:46:04 momjian Exp $
*
* NOTES
*
@@ -3361,6 +3361,15 @@ SubPostmasterMain(int argc, char *argv[])
#endif
/*
+ * process any libraries that should be preloaded at postmaster start
+ *
+ * NOTE: we have to re-load the shared_preload_libraries here because
+ * this backend is not fork()ed so we can't inherit any shared
+ * libraries / DLL's from our parent (the postmaster).
+ */
+ process_shared_preload_libraries();
+
+ /*
* Perform additional initialization and client authentication.
*
* We want to do this before InitProcess() for a couple of reasons: 1.