diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index f7c8bc16a7f..8f7d8758ca0 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1067,16 +1067,6 @@ INSERT INTO tbls1 VALUES ($1, $2) \parse stmt1
-
- \conninfo
-
-
- Outputs information about the current database connection,
- including TLS-related information if TLS is in use.
-
-
-
-
\close prepared_statement_name
@@ -1106,6 +1096,16 @@ SELECT $1 \parse stmt1
+
+ \conninfo
+
+
+ Outputs information about the current database connection,
+ including TLS-related information if TLS is in use.
+
+
+
+
\copy { table [ ( column_list ) ] }
from