mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Support replacing MODULE_PATHNAME during extension script file execution.
This avoids the need to find a way to make PGXS' .sql.in-to-.sql rule insert the right thing. We'll just deprecate use of that hack for extensions.
This commit is contained in:
@ -426,17 +426,6 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>requires</varname> (<type>string</type>)</term>
|
||||
<listitem>
|
||||
<para>
|
||||
A list of names of extensions that this extension depends on,
|
||||
for example <literal>requires = 'foo, bar'</literal>. Those
|
||||
extensions must be installed before this one can be installed.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>encoding</varname> (<type>string</type>)</term>
|
||||
<listitem>
|
||||
@ -448,6 +437,32 @@
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>module_pathname</varname> (<type>string</type>)</term>
|
||||
<listitem>
|
||||
<para>
|
||||
The value of this parameter will be substituted for each occurrence
|
||||
of <literal>MODULE_PATHNAME</> in the script file(s). If it is not
|
||||
set, no substitution is made. Typically, this is set to
|
||||
<literal>$libdir/<replaceable>shared_library_name</></literal> and
|
||||
then <literal>MODULE_PATHNAME</> is used in <command>CREATE
|
||||
FUNCTION</> commands for C-language functions, so that the script
|
||||
files do not need to hard-wire the name of the shared library.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>requires</varname> (<type>string</type>)</term>
|
||||
<listitem>
|
||||
<para>
|
||||
A list of names of extensions that this extension depends on,
|
||||
for example <literal>requires = 'foo, bar'</literal>. Those
|
||||
extensions must be installed before this one can be installed.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
<varlistentry>
|
||||
<term><varname>relocatable</varname> (<type>boolean</type>)</term>
|
||||
<listitem>
|
||||
|
Reference in New Issue
Block a user