diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 0cf84ca16cb..60571c5f7fc 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -179,7 +179,10 @@ EOF
If filename is -
- (hyphen), then standard input is read.
+ (hyphen), then standard input is read until an EOF indication
+ or \q> meta-command. Note however that Readline
+ is not used in this case (much as if had been
+ specified).
@@ -1688,6 +1691,13 @@ Tue Oct 26 21:40:57 CEST 1999
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