Skip to content

Commit c9ed438

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 28c3667 commit c9ed438

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,10 @@ EOF
192192

193193
<para>
194194
If <replaceable>filename</replaceable> is <literal>-</literal>
195-
(hyphen), then standard input is read.
195+
(hyphen), then standard input is read until an EOF indication
196+
or <command>\q</> meta-command. Note however that Readline
197+
is not used in this case (much as if <option>-n</option> had been
198+
specified).
196199
</para>
197200

198201
<para>
@@ -1783,6 +1786,13 @@ hello 10
17831786
class="parameter">filename</replaceable> and executes it as
17841787
though it had been typed on the keyboard.
17851788
</para>
1789+
<para>
1790+
If <replaceable>filename</replaceable> is <literal>-</literal>
1791+
(hyphen), then standard input is read until an EOF indication
1792+
or <command>\q</> meta-command. This can be used to intersperse
1793+
interactive input with input from files. Note that Readline behavior
1794+
will be used only if it is active at the outermost level.
1795+
</para>
17861796
<note>
17871797
<para>
17881798
If you want to see the lines on the screen as they are read you

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy