598
598
determined at compile time.
599
599
Since the database server uses the same default, you will not have
600
600
to specify the port in most cases. The default user name is your
601
- Unix user name, as is the default database name. Note that you cannot
601
+ operating-system user name, as is the default database name.
602
+ Note that you cannot
602
603
just connect to any database under any user name. Your database
603
604
administrator should have informed you about your access rights.
604
605
</para>
@@ -1640,14 +1641,14 @@ Tue Oct 26 21:40:57 CEST 1999
1640
1641
1641
1642
1642
1643
<varlistentry>
1643
- <term><literal>\g</literal> [ { <replaceable class="parameter">filename</replaceable> | <literal>|< /literal><replaceable class="parameter">command</replaceable> } ] </term>
1644
-
1644
+ <term><literal>\g [ <replaceable class="parameter">filename</replaceable> ]< /literal></term>
1645
+ <term><literal>\g [ |<replaceable class="parameter">command</replaceable> ]</literal></term>
1645
1646
<listitem>
1646
1647
<para>
1647
- Sends the current query input buffer to the server and
1648
+ Sends the current query input buffer to the server, and
1648
1649
optionally stores the query's output in <replaceable
1649
1650
class="parameter">filename</replaceable> or pipes the output
1650
- into a separate Unix shell executing <replaceable
1651
+ to the shell command <replaceable
1651
1652
class="parameter">command</replaceable>. The file or command is
1652
1653
written to only if the query successfully returns zero or more tuples,
1653
1654
not if the query fails or is a non-data-returning SQL command.
@@ -1661,7 +1662,7 @@ Tue Oct 26 21:40:57 CEST 1999
1661
1662
</varlistentry>
1662
1663
1663
1664
<varlistentry>
1664
- <term><literal>\gset</literal> [ <replaceable class="parameter">prefix</replaceable> ]</term>
1665
+ <term><literal>\gset [ <replaceable class="parameter">prefix</replaceable> ]</literal> </term>
1665
1666
1666
1667
<listitem>
1667
1668
<para>
@@ -1725,7 +1726,7 @@ hello 10
1725
1726
1726
1727
1727
1728
<varlistentry>
1728
- <term><literal>\H</literal></term>
1729
+ <term><literal>\H</literal> or <literal>\html</literal> </term>
1729
1730
<listitem>
1730
1731
<para>
1731
1732
Turns on <acronym>HTML</acronym> query output format. If the
@@ -1739,7 +1740,7 @@ hello 10
1739
1740
1740
1741
1741
1742
<varlistentry>
1742
- <term><literal>\i < replaceable class="parameter">filename</replaceable></literal ></term>
1743
+ <term><literal>\i</literal> or <literal>\include</literal> < replaceable class="parameter">filename</replaceable></term>
1743
1744
<listitem>
1744
1745
<para>
1745
1746
Reads input from the file <replaceable
@@ -1758,7 +1759,7 @@ hello 10
1758
1759
1759
1760
1760
1761
<varlistentry>
1761
- <term><literal>\ir < replaceable class="parameter">filename</replaceable></literal ></term>
1762
+ <term><literal>\ir</literal> or <literal>\include_relative</literal> < replaceable class="parameter">filename</replaceable></term>
1762
1763
<listitem>
1763
1764
<para>
1764
1765
The <literal>\ir</> command is similar to <literal>\i</>, but resolves
@@ -1874,15 +1875,15 @@ lo_import 152801
1874
1875
1875
1876
1876
1877
<varlistentry>
1877
- <term><literal>\o</literal> [ { <replaceable class="parameter">filename</replaceable> | <literal>|< /literal><replaceable class="parameter">command</replaceable>} ] </term>
1878
-
1878
+ <term><literal>\o</literal> or <literal>\out [ <replaceable class="parameter">filename</replaceable> ]< /literal></term>
1879
+ <term><literal>\o</literal> or <literal>\out [ |<replaceable class="parameter">command</replaceable> ]</literal></term>
1879
1880
<listitem>
1880
1881
<para>
1881
- Saves future query results to the file <replaceable
1882
- class="parameter">filename</replaceable> or pipes future results
1883
- into a separate Unix shell to execute <replaceable
1884
- class="parameter">command</replaceable>. If no arguments are
1885
- specified, the query output will be reset to the standard output.
1882
+ Arranges to save future query results to the file <replaceable
1883
+ class="parameter">filename</replaceable> or pipe future results
1884
+ to the shell command <replaceable
1885
+ class="parameter">command</replaceable>. If no argument is
1886
+ specified, the query output is reset to the standard output.
1886
1887
</para>
1887
1888
1888
1889
<para><quote>Query results</quote> includes all tables, command
@@ -1903,7 +1904,7 @@ lo_import 152801
1903
1904
1904
1905
1905
1906
<varlistentry>
1906
- <term><literal>\p</literal></term>
1907
+ <term><literal>\p</literal> or <literal>\print</literal> </term>
1907
1908
<listitem>
1908
1909
<para>
1909
1910
Print the current query buffer to the standard output.
@@ -2332,7 +2333,7 @@ lo_import 152801
2332
2333
2333
2334
2334
2335
<varlistentry>
2335
- <term><literal>\r</literal></term>
2336
+ <term><literal>\r</literal> or <literal>\reset</literal> </term>
2336
2337
<listitem>
2337
2338
<para>
2338
2339
Resets (clears) the query buffer.
@@ -2492,12 +2493,12 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
2492
2493
2493
2494
2494
2495
<varlistentry>
2495
- <term><literal>\w</literal> <replaceable class="parameter">filename</replaceable></term>
2496
- <term><literal>\w</literal> <literal>|</><replaceable class="parameter">command</replaceable></term>
2496
+ <term><literal>\w</literal> or <literal>\write</literal> <replaceable class="parameter">filename</replaceable></term>
2497
+ <term><literal>\w</literal> or <literal>\write</literal> <literal>|</><replaceable class="parameter">command</replaceable></term>
2497
2498
<listitem>
2498
2499
<para>
2499
2500
Outputs the current query buffer to the file <replaceable
2500
- class="parameter">filename</replaceable> or pipes it to the Unix
2501
+ class="parameter">filename</replaceable> or pipes it to the shell
2501
2502
command <replaceable class="parameter">command</replaceable>.
2502
2503
</para>
2503
2504
</listitem>
@@ -2550,7 +2551,7 @@ testdb=> <userinput>\setenv LESS -imx4F</userinput>
2550
2551
<term><literal>\! [ <replaceable class="parameter">command</replaceable> ]</literal></term>
2551
2552
<listitem>
2552
2553
<para>
2553
- Escapes to a separate Unix shell or executes the Unix command
2554
+ Escapes to a separate shell or executes the shell command
2554
2555
<replaceable class="parameter">command</replaceable>. The
2555
2556
arguments are not further interpreted; the shell will see them
2556
2557
as-is. In particular, the variable substitution rules and
0 commit comments