diff --git a/doc/src/sgml/pgupgrade.sgml b/doc/src/sgml/pgupgrade.sgml
index ae0346a22d4..20e27f52d94 100644
--- a/doc/src/sgml/pgupgrade.sgml
+++ b/doc/src/sgml/pgupgrade.sgml
@@ -280,7 +280,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.