Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 7bd149c

Browse files
committed
Docs: document that psql's "\i -" means read from stdin.
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.
1 parent fcbbf82 commit 7bd149c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

+7
Original file line numberDiff line numberDiff line change
@@ -1838,6 +1838,13 @@ hello 10
18381838
class="parameter">filename</replaceable> and executes it as
18391839
though it had been typed on the keyboard.
18401840
</para>
1841+
<para>
1842+
If <replaceable>filename</replaceable> is <literal>-</literal>
1843+
(hyphen), then standard input is read until an EOF indication
1844+
or <command>\q</> meta-command. This can be used to intersperse
1845+
interactive input with input from files. Note that Readline behavior
1846+
will be used only if it is active at the outermost level.
1847+
</para>
18411848
<note>
18421849
<para>
18431850
If you want to see the lines on the screen as they are read you

0 commit comments

Comments
 (0)