diff options
author | Bruce Momjian <bruce@momjian.us> | 2007-02-23 18:20:59 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2007-02-23 18:20:59 +0000 |
commit | 7031dd686918db20ded1d628fe40594fe9408146 (patch) | |
tree | f469e2e65095a467db0cfc97dbabf46f512062d2 /doc/src | |
parent | cc77005df7177d9af1c23b7af1cac08102fcbca9 (diff) |
Add psql \prompt capability.
Chad Wagner
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index ce936a0f98e..3075d695759 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -1,5 +1,5 @@ <!-- -$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.186 2007/02/21 23:22:42 momjian Exp $ +$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.187 2007/02/23 18:20:58 momjian Exp $ PostgreSQL documentation --> @@ -1430,6 +1430,24 @@ lo_import 152801 </varlistentry> <varlistentry> + <term><literal>\prompt [ <replaceable class="parameter">text</replaceable> ] <replaceable class="parameter">name</replaceable></literal></term> + <listitem> + <para> + Prompts the user to set variable <replaceable + class="parameter">name</>. An optional prompt, <replaceable + class="parameter">text</>, can be specified. (For multi-word + prompts, use single-quotes.) + </para> + + <para> + By default, <literal>\prompt</> uses the terminal for input and + output. However, if the <option>-f</> command line switch is + used, <literal>\prompt</> uses standard input and standard output. + </para> + </listitem> + </varlistentry> + + <varlistentry> <term><literal>\pset <replaceable class="parameter">parameter</replaceable> [ <replaceable class="parameter">value</replaceable> ]</literal></term> <listitem> |