aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2007-02-08 17:04:48 +0000
committerBruce Momjian <bruce@momjian.us>2007-02-08 17:04:48 +0000
commit760f4823e65a0de060877a77e0d7a89a1886b87f (patch)
tree1d8c05d92a2b0a198f5cf8cd262f4a03fda94fec /src
parente1c266493c460fe224cc028a4171cc9fa23b3a83 (diff)
downloadpostgresql-760f4823e65a0de060877a77e0d7a89a1886b87f.tar.gz
postgresql-760f4823e65a0de060877a77e0d7a89a1886b87f.zip
This patch fixes shared_preload_libraries on Windows hosts. It forces
each backend to re-load all shared_preload_libraries. Backpatch to 8.2.X. 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 2b5e7d1ae0d..809dfdebb5c 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.505.2.1 2007/01/04 00:58:01 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/postmaster/postmaster.c,v 1.505.2.2 2007/02/08 17:04:48 momjian Exp $
*
* NOTES
*
@@ -3333,6 +3333,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.