1999-07-22 17:09:15 +02:00
|
|
|
<!--
|
2008-11-14 11:22:48 +01:00
|
|
|
$PostgreSQL: pgsql/doc/src/sgml/ref/load.sgml,v 1.25 2008/11/14 10:22:47 petere Exp $
|
1999-07-22 17:09:15 +02:00
|
|
|
-->
|
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refentry id="SQL-LOAD">
|
|
|
|
<refmeta>
|
2001-11-18 21:35:02 +01:00
|
|
|
<refentrytitle id="SQL-LOAD-TITLE">LOAD</refentrytitle>
|
2008-11-14 11:22:48 +01:00
|
|
|
<manvolnum>7</manvolnum>
|
1999-07-06 19:16:42 +02:00
|
|
|
<refmiscinfo>SQL - Language Statements</refmiscinfo>
|
|
|
|
</refmeta>
|
2001-05-19 11:01:10 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refnamediv>
|
2001-05-19 11:01:10 +02:00
|
|
|
<refname>LOAD</refname>
|
2001-10-26 21:58:12 +02:00
|
|
|
<refpurpose>load or reload a shared library file</refpurpose>
|
1999-07-06 19:16:42 +02:00
|
|
|
</refnamediv>
|
2001-05-19 11:01:10 +02:00
|
|
|
|
2003-08-31 19:32:24 +02:00
|
|
|
<indexterm zone="sql-load">
|
|
|
|
<primary>LOAD</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<refsynopsisdiv>
|
2001-05-19 11:01:10 +02:00
|
|
|
<synopsis>
|
1999-07-06 19:16:42 +02:00
|
|
|
LOAD '<replaceable class="PARAMETER">filename</replaceable>'
|
2001-05-19 11:01:10 +02:00
|
|
|
</synopsis>
|
1999-07-06 19:16:42 +02:00
|
|
|
</refsynopsisdiv>
|
1998-12-29 03:24:47 +01:00
|
|
|
|
2001-05-19 11:01:10 +02:00
|
|
|
<refsect1 id="sql-load-description">
|
|
|
|
<title>Description</title>
|
1999-07-22 17:09:15 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<para>
|
2003-04-27 01:56:51 +02:00
|
|
|
This command loads a shared library file into the <productname>PostgreSQL</>
|
|
|
|
server's address space. If the file had been loaded previously,
|
2002-11-15 04:11:18 +01:00
|
|
|
it is first unloaded. This command is primarily useful to unload
|
|
|
|
and reload a shared library file that has been changed since the
|
2003-04-27 01:56:51 +02:00
|
|
|
server first loaded it. To make use of the shared library,
|
2002-11-15 04:11:18 +01:00
|
|
|
function(s) in it need to be declared using the <xref
|
|
|
|
linkend="sql-createfunction" endterm="sql-createfunction-title">
|
|
|
|
command.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
2001-10-26 21:58:12 +02:00
|
|
|
|
|
|
|
<para>
|
2002-01-20 23:19:57 +01:00
|
|
|
The file name is specified in the same way as for shared library
|
2001-11-18 21:35:02 +01:00
|
|
|
names in <xref linkend="sql-createfunction" endterm="sql-createfunction-title">; in particular, one
|
Update reference documentation on may/can/might:
Standard English uses "may", "can", and "might" in different ways:
may - permission, "You may borrow my rake."
can - ability, "I can lift that log."
might - possibility, "It might rain today."
Unfortunately, in conversational English, their use is often mixed, as
in, "You may use this variable to do X", when in fact, "can" is a better
choice. Similarly, "It may crash" is better stated, "It might crash".
2007-02-01 00:26:05 +01:00
|
|
|
can rely on a search path and automatic addition of the system's standard
|
2005-01-04 01:39:53 +01:00
|
|
|
shared library file name extension. See <xref linkend="xfunc-c"> for
|
2003-01-19 01:13:31 +01:00
|
|
|
more information on this topic.
|
2001-10-26 21:58:12 +02:00
|
|
|
</para>
|
2006-08-15 20:26:59 +02:00
|
|
|
|
|
|
|
<indexterm>
|
|
|
|
<primary><filename>$libdir/plugins</></primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<para>
|
Update reference documentation on may/can/might:
Standard English uses "may", "can", and "might" in different ways:
may - permission, "You may borrow my rake."
can - ability, "I can lift that log."
might - possibility, "It might rain today."
Unfortunately, in conversational English, their use is often mixed, as
in, "You may use this variable to do X", when in fact, "can" is a better
choice. Similarly, "It may crash" is better stated, "It might crash".
2007-02-01 00:26:05 +01:00
|
|
|
Non-superusers can only apply <command>LOAD</> to library files
|
2006-08-15 20:26:59 +02:00
|
|
|
located in <filename>$libdir/plugins/</> — the specified
|
|
|
|
<replaceable class="PARAMETER">filename</replaceable> must begin
|
|
|
|
with exactly that string. (It is the database administrator's
|
|
|
|
responsibility to ensure that only <quote>safe</> libraries
|
|
|
|
are installed there.)
|
|
|
|
</para>
|
2001-05-19 11:01:10 +02:00
|
|
|
</refsect1>
|
|
|
|
|
|
|
|
<refsect1 id="sql-load-compat">
|
|
|
|
<title>Compatibility</title>
|
1999-07-22 17:09:15 +02:00
|
|
|
|
1999-07-06 19:16:42 +02:00
|
|
|
<para>
|
2003-09-11 23:42:20 +02:00
|
|
|
<command>LOAD</command> is a <productname>PostgreSQL</productname>
|
2001-05-19 11:01:10 +02:00
|
|
|
extension.
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
2001-05-19 11:01:10 +02:00
|
|
|
</refsect1>
|
1999-07-22 17:09:15 +02:00
|
|
|
|
|
|
|
|
2001-05-19 11:01:10 +02:00
|
|
|
<refsect1>
|
|
|
|
<title>See Also</title>
|
1999-07-06 19:16:42 +02:00
|
|
|
|
|
|
|
<para>
|
2003-03-25 17:15:44 +01:00
|
|
|
<xref linkend="sql-createfunction" endterm="sql-createfunction-title">
|
1999-07-06 19:16:42 +02:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|