Skip to content

Commit dd95a1d

Browse files
committed
Add some useful cross-references to the CREATE EXTENSION reference page.
Per a suggestion from Josh Kupershmidt, though I modified his patch quite a lot.
1 parent d64713d commit dd95a1d

File tree

1 file changed

+26
-6
lines changed

1 file changed

+26
-6
lines changed

doc/src/sgml/ref/create_extension.sgml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,6 @@ CREATE EXTENSION [ IF NOT EXISTS ] <replaceable class="parameter">extension_name
4545
<command>DROP EXTENSION</command> is issued.
4646
</para>
4747

48-
<para>
49-
For information about writing new extensions, see
50-
<xref linkend="extend-extensions">.
51-
</para>
52-
5348
<para>
5449
Loading an extension requires the same privileges that would be
5550
required to create its component objects. For most extensions this
@@ -72,7 +67,7 @@ CREATE EXTENSION [ IF NOT EXISTS ] <replaceable class="parameter">extension_name
7267
Do not throw an error if an extension with the same name already
7368
exists. A notice is issued in this case. Note that there is no
7469
guarantee that the existing extension is anything like the one that
75-
would have been created.
70+
would have been created from the currently-available script file.
7671
</para>
7772
</listitem>
7873
</varlistentry>
@@ -142,6 +137,31 @@ CREATE EXTENSION [ IF NOT EXISTS ] <replaceable class="parameter">extension_name
142137
</variablelist>
143138
</refsect1>
144139

140+
<refsect1>
141+
<title>Notes</title>
142+
143+
<para>
144+
Before you can use <command>CREATE EXTENSION</> to load an extension
145+
into a database, the extension's supporting files must be installed.
146+
Information about installing the extensions supplied with
147+
<productname>PostgreSQL</productname> can be found in
148+
<link linkend="contrib">Additional Supplied Modules</link>.
149+
</para>
150+
151+
<para>
152+
The extensions currently available for loading can be identified from the
153+
<link linkend="view-pg-available-extensions"><structname>pg_available_extensions</structname></link>
154+
or
155+
<link linkend="view-pg-available-extension-versions"><structname>pg_available_extension_versions</structname></link>
156+
system views.
157+
</para>
158+
159+
<para>
160+
For information about writing new extensions, see
161+
<xref linkend="extend-extensions">.
162+
</para>
163+
</refsect1>
164+
145165
<refsect1>
146166
<title>Examples</title>
147167

0 commit comments

Comments
 (0)