diff --git a/doc/src/sgml/ref/pgupgrade.sgml b/doc/src/sgml/ref/pgupgrade.sgml
index 96851933cc5..bbb606d1caa 100644
--- a/doc/src/sgml/ref/pgupgrade.sgml
+++ b/doc/src/sgml/ref/pgupgrade.sgml
@@ -273,7 +273,8 @@ make prefix=/usr/local/pgsql.new install
into the new cluster, e.g. pgcrypto.so,
whether they are from contrib
or some other source. Do not install the schema definitions, e.g.
- pgcrypto.sql>, because these will be upgraded from the old cluster.
+ CREATE EXTENSION pgcrypto>, because these will be upgraded
+ from the old cluster.
Also, any custom full text search files (dictionary, synonym,
thesaurus, stop words) must also be copied to the new cluster.