Skip to content

Commit cc7091d

Browse files
committed
pg_upgrade: improve docs about extension upgrades
The previous wording was unclear about the steps needed to upgrade extensions, and how to update them after pg_upgrade. Reported-by: Dave Cramer Discussion: https://postgr.es/m/CADK3HHKawwbOcGwMGnDuAf3-U8YfvTcS8jqDv3UM=niijs3MMA@mail.gmail.com Backpatch-through: 9.6
1 parent 8a0408a commit cc7091d

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

doc/src/sgml/ref/pgupgrade.sgml

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -269,17 +269,27 @@ make prefix=/usr/local/pgsql.new install
269269
</step>
270270

271271
<step>
272-
<title>Install custom shared object files</title>
272+
<title>Install extension shared object files</title>
273273

274274
<para>
275-
Install any custom shared object files (or DLLs) used by the old cluster
276-
into the new cluster, e.g., <filename>pgcrypto.so</filename>,
277-
whether they are from <filename>contrib</filename>
278-
or some other source. Do not install the schema definitions, e.g.,
279-
<command>CREATE EXTENSION pgcrypto</command>, because these will be upgraded
280-
from the old cluster.
281-
Also, any custom full text search files (dictionary, synonym,
282-
thesaurus, stop words) must also be copied to the new cluster.
275+
Many extensions and custom modules, whether from
276+
<filename>contrib</filename> or another source, use shared object
277+
files (or DLLs), e.g., <filename>pgcrypto.so</filename>. If the old
278+
cluster used these, shared object files matching the new server binary
279+
must be installed in the new cluster, usually via operating system
280+
commands. Do not load the schema definitions, e.g., <command>CREATE
281+
EXTENSION pgcrypto</command>, because these will be duplicated from
282+
the old cluster. (Extensions with available updates can be processed
283+
later using <literal>ALTER EXTENSION ... UPDATE</literal>.)
284+
</para>
285+
</step>
286+
287+
<step>
288+
<title>Copy custom full-text search files</title>
289+
290+
<para>
291+
Copy any custom full text search files (dictionary, synonym,
292+
thesaurus, stop words) from the old to the new cluster.
283293
</para>
284294
</step>
285295

@@ -459,10 +469,10 @@ pg_upgrade.exe
459469
</step>
460470

461471
<step>
462-
<title>Install custom shared object files</title>
472+
<title>Install extension shared object files</title>
463473

464474
<para>
465-
Install the same custom shared object files on the new standbys
475+
Install the same extension shared object files on the new standbys
466476
that you installed in the new primary cluster.
467477
</para>
468478
</step>

0 commit comments

Comments
 (0)