Skip to main content
Version: 1.0.16

LOAD

LOAD — load a shared library file

Synopsis

LOAD 'filename'

Description

This command loads a shared library file into the Halo server's address space. If the file has already been loaded, this command does nothing. Shared library files containing C functions are automatically loaded whenever one of those functions is called. Therefore, an explicit LOAD is typically only needed to load a library that modifies server behavior through "hooks" rather than providing a set of functions.

The library file name is typically just a bare filename, searched for in the server's library search path (set by dynamic_library_path). Alternatively, it can be given as a full path name. In either case, the platform's standard shared library file extension can be omitted.

Non-superusers can only apply LOAD to library files located in $libdir/plugins/ — the specified filename must begin exactly with that string (it is the database administrator's responsibility to ensure that only "safe" libraries are installed there).

See Also

CREATE FUNCTION