diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-15 18:26:59 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-08-15 18:26:59 +0000 |
| commit | abc3120e9b2055f0934f60ad3e3040db548df8d3 (patch) | |
| tree | 2e47098790253c6ecbcbb8b99e3c5e5b5551c9d2 /src/include/fmgr.h | |
| parent | 66541c5aa51bf6128afa8ebb4bb90959b596705f (diff) | |
| download | postgresql-abc3120e9b2055f0934f60ad3e3040db548df8d3.tar.gz | |
Add server support for "plugin" libraries that can be used for add-on tasks
such as debugging and performance measurement. This consists of two features:
a table of "rendezvous variables" that allows separately-loaded shared
libraries to communicate, and a new GUC setting "local_preload_libraries"
that allows libraries to be loaded into specific sessions without explicit
cooperation from the client application. To make local_preload_libraries
as flexible as possible, we do not restrict its use to superusers; instead,
it is restricted to load only libraries stored in $libdir/plugins/. The
existing LOAD command has also been modified to allow non-superusers to
LOAD libraries stored in this directory.
This patch also renames the existing GUC variable preload_libraries to
shared_preload_libraries (after a suggestion by Simon Riggs) and does some
code refactoring in dfmgr.c to improve clarity.
Korry Douglas, with a little help from Tom Lane.
Diffstat (limited to 'src/include/fmgr.h')
| -rw-r--r-- | src/include/fmgr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/fmgr.h b/src/include/fmgr.h index 5b904cbad4..2e9e3f7182 100644 --- a/src/include/fmgr.h +++ b/src/include/fmgr.h @@ -11,7 +11,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.45 2006/05/31 20:58:09 tgl Exp $ + * $PostgreSQL: pgsql/src/include/fmgr.h,v 1.46 2006/08/15 18:26:59 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -488,7 +488,8 @@ extern char *Dynamic_library_path; extern PGFunction load_external_function(char *filename, char *funcname, bool signalNotFound, void **filehandle); extern PGFunction lookup_external_function(void *filehandle, char *funcname); -extern void load_file(char *filename); +extern void load_file(const char *filename, bool restrict); +extern void **find_rendezvous_variable(const char *varName); /* |
