Commit 7bd149ce authored by Tom Lane's avatar Tom Lane

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.
parent fcbbf82d
...@@ -1838,6 +1838,13 @@ hello 10 ...@@ -1838,6 +1838,13 @@ hello 10
class="parameter">filename</replaceable> and executes it as class="parameter">filename</replaceable> and executes it as
though it had been typed on the keyboard. though it had been typed on the keyboard.
</para> </para>
<para>
If <replaceable>filename</replaceable> is <literal>-</literal>
(hyphen), then standard input is read until an EOF indication
or <command>\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.
</para>
<note> <note>
<para> <para>
If you want to see the lines on the screen as they are read you If you want to see the lines on the screen as they are read you
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment