diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index a416c1de9f9..6d0cb3d2ddc 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1838,6 +1838,13 @@ hello 10
class="parameter">filename and executes it as
though it had been typed on the keyboard.
+
+ If filename is -
+ (hyphen), then standard input is read until an EOF indication
+ or \q> meta-command. This can be used to intersperse
+ interactive input with input from files. Note that Readline behavior
+ will be used only if it is active at the outermost level.
+
If you want to see the lines on the screen as they are read you