diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-13 23:42:54 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-13 23:42:54 -0500 |
commit | 7bd149ce2aa6af8910604eb45cc202798f563781 (patch) | |
tree | 16893a8dc2e979e4d63bb7658268ec8481b82e83 | |
parent | fcbbf82d2b6caf7b156f2ec35b322e23caf1e99e (diff) | |
download | postgresql-7bd149ce2aa6af8910604eb45cc202798f563781.tar.gz postgresql-7bd149ce2aa6af8910604eb45cc202798f563781.zip |
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.
-rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index a416c1de9f9..6d0cb3d2ddc 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1838,6 +1838,13 @@ hello 10 class="parameter">filename</replaceable> and executes it as though it had been typed on the keyboard. </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> <para> If you want to see the lines on the screen as they are read you |