mirror of
https://github.com/postgres/postgres.git
synced 2025-05-03 22:24:49 +03:00
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
This commit is contained in:
parent
e1c266493c
commit
760f4823e6
@ -1,4 +1,4 @@
|
|||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.98.2.3 2007/02/08 03:57:52 momjian Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/config.sgml,v 1.98.2.4 2007/02/08 17:04:48 momjian Exp $ -->
|
||||||
|
|
||||||
<chapter Id="runtime-config">
|
<chapter Id="runtime-config">
|
||||||
<title>Server Configuration</title>
|
<title>Server Configuration</title>
|
||||||
@ -990,6 +990,17 @@ SET ENABLE_SEQSCAN TO OFF;
|
|||||||
libraries that will be used in most sessions.
|
libraries that will be used in most sessions.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<note>
|
||||||
|
<para>
|
||||||
|
On Windows hosts, preloading a library at server start will not reduce
|
||||||
|
the time required to start each new server process; each server process
|
||||||
|
will re-load all preload libraries. However, <varname>shared_preload_libraries
|
||||||
|
</varname> is still useful on Windows hosts because some shared libraries may
|
||||||
|
need to perform certain operations that only take place at postmaster start
|
||||||
|
(for example, a shared library may need to reserve lightweight locks
|
||||||
|
or shared memory and you can't do that after the postmaster has started).
|
||||||
|
</para>
|
||||||
|
</note>
|
||||||
<para>
|
<para>
|
||||||
If a specified library is not found,
|
If a specified library is not found,
|
||||||
the server will fail to start.
|
the server will fail to start.
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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
|
* NOTES
|
||||||
*
|
*
|
||||||
@ -3332,6 +3332,15 @@ SubPostmasterMain(int argc, char *argv[])
|
|||||||
secure_initialize();
|
secure_initialize();
|
||||||
#endif
|
#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.
|
* Perform additional initialization and client authentication.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user