618
618
to specify the port in most cases. The default user name is your
619
- Unix user name, as is the default database name. Note that you cannot
619
+ operating-system user name, as is the default database name.
620
+ Note that you cannot
620
621
just connect to any database under any user name. Your database
621
622
administrator should have informed you about your access rights.
622
623
</para>
@@ -1659,14 +1660,14 @@ Tue Oct 26 21:40:57 CEST 1999
1659
1660
1660
1661
1661
1662
<varlistentry>
1662
- <term><literal>\g</literal> [ { <replaceable class="parameter">filename</replaceable> | <literal>|< /literal><replaceable class="parameter">command</replaceable> } ] </term>
1663
-
1663
+ <term><literal>\g [ <replaceable class="parameter">filename</replaceable> ]< /literal></term>
1664
+ <term><literal>\g [ |<replaceable class="parameter">command</replaceable> ]</literal></term>
1664
1665
<listitem>
1665
1666
<para>
1666
- Sends the current query input buffer to the server and
1667
+ Sends the current query input buffer to the server, and
1667
1668
optionally stores the query's output in <replaceable
1668
1669
class="parameter">filename</replaceable> or pipes the output
1669
- into a separate Unix shell executing <replaceable
1670
+ to the shell command <replaceable
1670
1671
class="parameter">command</replaceable>. The file or command is
1671
1672
written to only if the query successfully returns zero or more tuples,
1672
1673
not if the query fails or is a non-data-returning SQL command.
@@ -1680,7 +1681,7 @@ Tue Oct 26 21:40:57 CEST 1999
1680
1681
</varlistentry>
1681
1682
1682
1683
<varlistentry>
1683
- <term><literal>\gset</literal> [ <replaceable class="parameter">prefix</replaceable> ]</term>
1684
+ <term><literal>\gset [ <replaceable class="parameter">prefix</replaceable> ]</literal> </term>
1684
1685
1685
1686
<listitem>
1686
1687
<para>
@@ -1744,7 +1745,7 @@ hello 10
1744
1745
1745
1746
1746
1747
<varlistentry>
1747
- <term><literal>\H</literal></term>
1748
+ <term><literal>\H</literal> or <literal>\html</literal> </term>
1748
1749
<listitem>
1749
1750
<para>
1750
1751
Turns on <acronym>HTML</acronym> query output format. If the
@@ -1758,7 +1759,7 @@ hello 10
1758
1759
1759
1760
1760
1761
<varlistentry>
1761
- <term><literal>\i < replaceable class="parameter">filename</replaceable></literal ></term>
1762
+ <term><literal>\i</literal> or <literal>\include</literal> < replaceable class="parameter">filename</replaceable></term>
1762
1763
<listitem>
1763
1764
<para>
1764
1765
Reads input from the file <replaceable
@@ -1777,7 +1778,7 @@ hello 10
1777
1778
1778
1779
1779
1780
<varlistentry>
1780
- <term><literal>\ir < replaceable class="parameter">filename</replaceable></literal ></term>
1781
+ <term><literal>\ir</literal> or <literal>\include_relative</literal> < replaceable class="parameter">filename</replaceable></term>
1781
1782
<listitem>
1782
1783
<para>
1783
1784
The <literal>\ir</> command is similar to <literal>\i</>, but resolves
@@ -1893,15 +1894,15 @@ lo_import 152801
1893
1894
1894
1895
1895
1896
<varlistentry>
1896
- <term><literal>\o</literal> [ { <replaceable class="parameter">filename</replaceable> | <literal>|< /literal><replaceable class="parameter">command</replaceable>} ] </term>
1897
-
1897
+ <term><literal>\o</literal> or <literal>\out [ <replaceable class="parameter">filename</replaceable> ]< /literal></term>
1898
+ <term><literal>\o</literal> or <literal>\out [ |<replaceable class="parameter">command</replaceable> ]</literal></term>
1898
1899
<listitem>
1899
1900
<para>
1900
- Saves future query results to the file <replaceable
1901
- class="parameter">filename</replaceable> or pipes future results
1902
- into a separate Unix shell to execute <replaceable
1903
- class="parameter">command</replaceable>. If no arguments are
1904
- specified, the query output will be reset to the standard output.
1901
+ Arranges to save future query results to the file <replaceable
1902
+ class="parameter">filename</replaceable> or pipe future results
1903
+ to the shell command <replaceable
1904
+ class="parameter">command</replaceable>. If no argument is
1905
+ specified, the query output is reset to the standard output.
1905
1906
</para>
1906
1907
1907
1908
<para><quote>Query results</quote> includes all tables, command
@@ -1922,7 +1923,7 @@ lo_import 152801
1922
1923
1923
1924
1924
1925
<varlistentry>
1925
- <term><literal>\p</literal></term>
1926
+ <term><literal>\p</literal> or <literal>\print</literal> </term>
1926
1927
<listitem>
1927
1928
<para>
1928
1929
Print the current query buffer to the standard output.
@@ -2381,7 +2382,7 @@ lo_import 152801
2381
2382
2382
2383
2383
2384
<varlistentry>
2384
- <term><literal>\r</literal></term>
2385
+ <term><literal>\r</literal> or <literal>\reset</literal> </term>
2385
2386
<listitem>
2386
2387
<para>
2387
2388
Resets (clears) the query buffer.
@@ -2541,12 +2542,12 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
2541
2542
2542
2543
2543
2544
<varlistentry>
2544
- <term><literal>\w</literal> <replaceable class="parameter">filename</replaceable></term>
2545
- <term><literal>\w</literal> <literal>|</><replaceable class="parameter">command</replaceable></term>
2545
+ <term><literal>\w</literal> or <literal>\write</literal> <replaceable class="parameter">filename</replaceable></term>
2546
+ <term><literal>\w</literal> or <literal>\write</literal> <literal>|</><replaceable class="parameter">command</replaceable></term>
2546
2547
<listitem>
2547
2548
<para>
2548
2549
Outputs the current query buffer to the file <replaceable
2549
- class="parameter">filename</replaceable> or pipes it to the Unix
2550
+ class="parameter">filename</replaceable> or pipes it to the shell
2550
2551
command <replaceable class="parameter">command</replaceable>.
2551
2552
</para>
2552
2553
</listitem>
@@ -2599,7 +2600,7 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
2599
2600
<term><literal>\! [ <replaceable class="parameter">command</replaceable> ]</literal></term>
2600
2601
<listitem>
2601
2602
<para>
2602
- Escapes to a separate Unix shell or executes the Unix command
2603
+ Escapes to a separate shell or executes the shell command
2603
2604
<replaceable class="parameter">command</replaceable>. The
2604
2605
arguments are not further interpreted; the shell will see them
2605
2606
as-is. In particular, the variable substitution rules and
0 commit comments