postgresql/src
Bruce Momjian 15ce2d2e4a > I can see a couple possible downsides: (a) the library might have some
> weird behavior across fork boundaries; (b) the additional memory space
> that has to be duplicated into child processes will cost something per
> child launch, even if the child never uses it.  But these are only
> arguments that it might not *always* be a prudent thing to do, not that
> we shouldn't give the DBA the tool to do it if he wants.  So fire away.

Here is a patch for the above, including a documentation update. It
creates a new GUC variable "preload_libraries", that accepts a list in
the form:

   preload_libraries = '$libdir/mylib1:initfunc,$libdir/mylib2'

If ":initfunc" is omitted or not found, no initialization function is
executed, but the library is still preloaded. If "$libdir/mylib" isn't
found, the postmaster refuses to start.

In my testing with PL/R, it reduces the first call to a PL/R function
(after connecting) from almost 2 seconds, down to about 8 ms.

Joe Conway
2003-03-20 04:51:44 +00:00
..
backend > I can see a couple possible downsides: (a) the library might have some 2003-03-20 04:51:44 +00:00
bin > Mph. It fails for me too when I use --enable-integer-datetimes. Looks 2003-03-20 04:49:18 +00:00
corba Convert files from DOS format to normal text. 2000-12-03 14:43:59 +00:00
data I've sent 3 mails to pgsql-patches. There are two files, one for doc 1999-08-16 20:27:19 +00:00
include > I can see a couple possible downsides: (a) the library might have some 2003-03-20 04:51:44 +00:00
interfaces Avoid mysterious warning about possibly uninitialized variable. 2003-03-19 16:05:41 +00:00
makefiles Revert rpath-mangling patch. See discussion on -patches around Nov 29 for 2003-01-05 13:45:47 +00:00
pl This patch fixes a bunch of spelling mistakes in comments throughout the 2003-03-10 22:28:22 +00:00
port Back out flockfile change for NetBSD. Giles Lean reports they are not 2003-01-11 19:38:23 +00:00
template Mark SCO Openserver 5.0.4. supported by 7.3.1 as per chat report from user. 2002-12-11 22:27:26 +00:00
test Add start time to pg_stat_activity 2003-03-20 03:34:57 +00:00
tools Update release steps. 2003-01-29 03:41:54 +00:00
tutorial Assorted fixes for Cygwin: 2002-09-05 18:28:46 +00:00
utils Re-add Win32 missing files, I think. 2002-11-02 02:00:35 +00:00
bcc32.mak Attached is a patch to provide makefiles, etc. to allow the compilation 2002-12-30 21:07:26 +00:00
DEVELOPERS just testing a script... 1999-07-30 03:45:57 +00:00
Makefile Assorted fixes for Cygwin: 2002-09-05 18:28:46 +00:00
Makefile.global.in Enable IPv6 connections to the server, and add pg_hba.conf IPv6 entries 2003-01-06 03:18:27 +00:00
Makefile.shlib Cause symlinks for shared-library versioning to run in the standard 2003-01-11 17:22:19 +00:00
nls-global.mk Avoid shell syntax error if list of languages is empty. 2002-09-02 22:19:42 +00:00
win32.mak Remove all traces of multibyte and locale options. Clean up comments 2002-09-03 21:45:44 +00:00