diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 7e83b185bc9..c3071752c71 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
@@ -89,7 +89,7 @@ PostgreSQL documentation
SQL and psql
meta-commands with this option. To achieve that, you could
pipe the string into psql, like
- this: echo "\x \\ SELECT * FROM foo;" | psql.
+ this: echo '\x \\ SELECT * FROM foo;' | psql.
(\\> is the separator meta-command.)