| The PostgreSQL 9.0 Reference Manual - Volume 3 - Server Administration Guide
by The PostgreSQL Global Development Group Paperback (6"x9"), 274 pages ISBN 9781906966072 RRP £9.95 ($14.95) Sales of this book support the PostgreSQL project! Get a printed copy>>> |
4.10.3 Other Defaults
dynamic_library_path(string)-
If a dynamically loadable module needs to be opened and the
file name specified in the
CREATE FUNCTIONorLOADcommand does not have a directory component (i.e., the name does not contain a slash), the system will search this path for the required file. The value fordynamic_library_pathmust be a list of absolute directory paths separated by colons (or semi-colons on Windows). If a list element starts with the special string$libdir, the compiled-in PostgreSQL package library directory is substituted for$libdir; this is where the modules provided by the standard PostgreSQL distribution are installed. (Usepg_config --pkglibdirto find out the name of this directory.) For example:dynamic_library_path = '/usr/local/lib/postgresql:/home/ my_project/lib:$libdir'
or, in a Windows environment:dynamic_library_path = 'C:\tools\postgresql; H:\my_project\lib;$libdir'
The default value for this parameter is'$libdir'. If the value is set to an empty string, the automatic path search is turned off. This parameter can be changed at run time by superusers, but a setting done that way will only persist until the end of the client connection, so this method should be reserved for development purposes. The recommended way to set this parameter is in the ‘postgresql.conf’ configuration file. gin_fuzzy_search_limit(integer)- Soft upper limit of the size of the set returned by GIN index scans. For more information see GIN tips and tricks.
local_preload_libraries(string)-
This variable specifies one or more shared libraries that are
to be preloaded at connection start. If more than one library
is to be loaded, separate their names with commas. All library
names are converted to lower case unless double-quoted.
This parameter cannot be changed after the start of a particular
session.
Because this is not a superuser-only option, the libraries
that can be loaded are restricted to those appearing in the
‘plugins’ subdirectory of the installation's
standard library directory. (It is the database administrator's
responsibility to ensure that only “safe” libraries
are installed there.) Entries in
local_preload_librariescan specify this directory explicitly, for example$libdir/plugins/mylib, or just specify the library name---mylibwould have the same effect as$libdir/plugins/mylib. Unlikelocal_preload_libraries, there is no performance advantage to loading a library at session start rather than when it is first used. Rather, the intent of this feature is to allow debugging or performance-measurement libraries to be loaded into specific sessions without an explicitLOADcommand being given. For example, debugging could be enabled for all sessions under a given user name by setting this parameter withALTER USER SET. If a specified library is not found, the connection attempt will fail. Every PostgreSQL-supported library has a “magic block” that is checked to guarantee compatibility. For this reason, non-PostgreSQL libraries cannot be loaded in this way.
| ISBN 9781906966072 | The PostgreSQL 9.0 Reference Manual - Volume 3 - Server Administration Guide | See the print edition |