NAME
LOAD - 装载或重载一个共享库文件
SYNOPSIS
LOAD 'filename'
DESCRIPTION 描述
这个命令装载一个共享库文件到PostgreSQL服务器的地址空间。 一旦一个文件被装载,如果该文件前面曾经装载过,那么服务器首先会卸载它。 这条命令主要用于在一个共享库件修改后卸载和重载它。 要利用这个共享库件,我们必须用 CREATE FUNCTION [create_function(7)] 命令声明函数。
文件名是和 CREATE FUNCTION [create_function(7)] 里描写的共享库的名字相同方法声明的; 特别要注意等是我们可以依赖搜索路径和自动附加系统标准共享库扩展名的特点。 参阅 Section 31.3 ``User-Defined Functions'' 获取更多细节。
COMPATIBILITY 兼容性
LOAD 是 PostgreSQL 扩展。
SEE ALSO 参见
CREATE FUNCTION [create_function(7)]
#p#
NAME
LOAD - load or reload a shared library file
SYNOPSIS
LOAD 'filename'
DESCRIPTION
This command loads a shared library file into the PostgreSQL server's address space. If the file had been loaded previously, it is first unloaded. This command is primarily useful to unload and reload a shared library file that has been changed since the server first loaded it. To make use of the shared library, function(s) in it need to be declared using the CREATE FUNCTION [create_function(7)] command.
The file name is specified in the same way as for shared library names in CREATE FUNCTION [create_function(7)]; in particular, one may rely on a search path and automatic addition of the system's standard shared library file name extension. See the section called ``User-Defined Functions'' in the documentation for more information on this topic.
COMPATIBILITY
LOAD is a PostgreSQL extension.
SEE ALSO
CREATE FUNCTION [create_function(7)]