@ -365,13 +365,13 @@
The <xref linkend="sql-createextension"> command relies on a control
The <xref linkend="sql-createextension"> command relies on a control
file for each extension, which must be named the same as the extension
file for each extension, which must be named the same as the extension
with a suffix of <literal>.control</>, and must be placed in the
with a suffix of <literal>.control</>, and must be placed in the
installation's <literal>SHAREDIR/contrib </literal> directory. There
installation's <literal>SHAREDIR/extension </literal> directory. There
must also be at least one <acronym>SQL</> script file, which follows the
must also be at least one <acronym>SQL</> script file, which follows the
naming pattern
naming pattern
<literal><replaceable>extension</>-<replaceable>version</>.sql</literal>
<literal><replaceable>extension</>-<replaceable>version</>.sql</literal>
(for example, <literal>foo-1.0.sql</> for version <literal>1.0</> of
(for example, <literal>foo-1.0.sql</> for version <literal>1.0</> of
extension <literal>foo</>). By default, the script file(s) are also
extension <literal>foo</>). By default, the script file(s) are also
placed in the <literal>SHAREDIR/contrib </literal> directory; but the
placed in the <literal>SHAREDIR/extension </literal> directory; but the
control file can specify a different directory for the script file(s).
control file can specify a different directory for the script file(s).
</para>
</para>
@ -395,7 +395,9 @@
<para>
<para>
The directory containing the extension's <acronym>SQL</> script
The directory containing the extension's <acronym>SQL</> script
file(s). Unless an absolute path is given, the name is relative to
file(s). Unless an absolute path is given, the name is relative to
the <literal>SHAREDIR/contrib</literal> directory.
the installation's <literal>SHAREDIR</literal> directory. The
default behavior is equivalent to specifying
<literal>directory = 'extension'</>.
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
@ -905,23 +907,26 @@ include $(PGXS)
<variablelist>
<variablelist>
<varlistentry>
<varlistentry>
<term><varname>MODULEDIR </varname></term>
<term><varname>EXTENSION </varname></term>
<listitem>
<listitem>
<para>
<para>
subdirectory into which EXTENSION, DATA and DOCS files should be
extension name(s); for each name you must provide an
installed (if not set, default is <literal>contrib</literal>)
<literal><replaceable>extension</replaceable>.control</literal> file,
which will be installed into
<literal><replaceable>prefix</replaceable>/share/extension</literal>
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<varlistentry>
<term><varname>EXTENSION </varname></term>
<term><varname>MODULEDIR </varname></term>
<listitem>
<listitem>
<para>
<para>
extension name(s); for each name you must provide an
subdirectory of <literal><replaceable>prefix</>/share</literal>
<literal><replaceable>extension</replaceable>.control</literal> file,
into which DATA and DOCS files should be installed
which will be installed into
(if not set, default is <literal>extension</literal> if
<literal><replaceable>prefix</replaceable>/share/$MODULEDIR</literal>
<varname>EXTENSION</varname> is set,
or <literal>contrib</literal> if not)
</para>
</para>
</listitem>
</listitem>
</varlistentry>
</varlistentry>