From 8b1ea2f58b5f6c65a06781250ef38418c20796a1 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 31 Jul 2003 18:36:46 +0000 Subject: Cause library-preload feature to report error if specified initialization function is not found. Also, make all the PL libraries have initialization functions with standard names. Patch from Joe Conway. --- doc/src/sgml/runtime.sgml | 36 +++++++++++++++++++++--------------- 1 file changed, 21 insertions(+), 15 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/runtime.sgml b/doc/src/sgml/runtime.sgml index 43b82043890..a44ccfde88a 100644 --- a/doc/src/sgml/runtime.sgml +++ b/doc/src/sgml/runtime.sgml @@ -1,5 +1,5 @@ @@ -1004,29 +1004,35 @@ SET ENABLE_SEQSCAN TO OFF; This variable specifies one or more shared libraries that are - to be preloaded at server start. An initialization function - can also be optionally specified by adding a colon followed by - the name of the initialization function after the library - name. For example - '$libdir/mylib:init_mylib' would cause - mylib to be preloaded and init_mylib - to be executed. If more than one library is to be loaded, they - must be delimited with a comma. + to be preloaded at server start. A parameterless initialization + function can optionally be called for each library. To specify + that, add a colon and the name of the initialization function after + the library name. For example + '$libdir/mylib:mylib_init' would cause + mylib to be preloaded and mylib_init + to be executed. If more than one library is to be loaded, separate + their names with commas. - If mylib is not found, the server will fail to - start. However, if init_mylib is not found, - mylib will still be preloaded without executing - the initialization function. + If mylib or mylib_init are not found, the + server will fail to start. + + + + PostgreSQL procedural language libraries may be preloaded in this way, + typically by using the syntax + '$libdir/plXXX:plXXX_init' + where XXX is pgsql, + perl, tcl, or python. By preloading a shared library (and initializing it if applicable), the library startup time is avoided when the library is first used. However, the time to start each new - server process may increase, even if that process never - uses the library. + server process may increase, even if that process never + uses the library. -- cgit v1.2.3