Docs: document that psql's "\i -" means read from stdin.
authorTom Lane
Mon, 14 Dec 2015 04:42:54 +0000 (23:42 -0500)
committerTom Lane
Mon, 14 Dec 2015 04:42:54 +0000 (23:42 -0500)
This has worked that way for a long time, maybe always, but you would
not have known it from the documentation.  Also back-patch the notes
I added to HEAD earlier today about behavior of the "-f -" switch,
which likewise have been valid for many releases.

doc/src/sgml/ref/psql-ref.sgml

index a416c1de9f9c64a1d6cc63cc1d40dbda6283c59f..6d0cb3d2ddcb3d0e15093693cc55edcb1df318c7 100644 (file)
@@ -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