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.
REL9_1_STABLE
Tom Lane 10 years ago
parent f2ce8f2b93
commit 20f85bc50b
  1. 12
      doc/src/sgml/ref/psql-ref.sgml

@ -176,7 +176,10 @@ EOF
<para> <para>
If <replaceable>filename</replaceable> is <literal>-</literal> If <replaceable>filename</replaceable> is <literal>-</literal>
(hyphen), then standard input is read. (hyphen), then standard input is read until an EOF indication
or <command>\q</> meta-command. Note however that Readline
is not used in this case (much as if <option>-n</option> had been
specified).
</para> </para>
<para> <para>
@ -1646,6 +1649,13 @@ Tue Oct 26 21:40:57 CEST 1999
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

Loading…
Cancel
Save