mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Add psql \prompt capability.
Chad Wagner
This commit is contained in:
@@ -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
|
||||
-->
|
||||
|
||||
@@ -1429,6 +1429,24 @@ lo_import 152801
|
||||
</listitem>
|
||||
</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>
|
||||
|
||||
|
Reference in New Issue
Block a user