1
1
<!--
2
- $PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.202 2008/05/08 00:27:57 momjian Exp $
2
+ $PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.203 2008/05/08 17:04:26 momjian Exp $
3
3
PostgreSQL documentation
4
4
-->
5
5
@@ -1514,7 +1514,8 @@ lo_import 152801
1514
1514
<listitem>
1515
1515
<para>
1516
1516
Sets the output format to one of <literal>unaligned</literal>,
1517
- <literal>aligned</literal>, <literal>html</literal>,
1517
+ <literal>aligned</literal>, <literal>wrapped</literal>,
1518
+ <literal>html</literal>,
1518
1519
<literal>latex</literal>, or <literal>troff-ms</literal>.
1519
1520
Unique abbreviations are allowed. (That would mean one letter
1520
1521
is enough.)
@@ -1526,8 +1527,21 @@ lo_import 152801
1526
1527
is intended to create output that might be intended to be read
1527
1528
in by other programs (tab-separated, comma-separated).
1528
1529
<quote>Aligned</quote> mode is the standard, human-readable,
1529
- nicely formatted text output that is default. The
1530
- <quote><acronym>HTML</acronym></quote> and
1530
+ nicely formatted text output that is default.
1531
+ </para>
1532
+
1533
+ <para>
1534
+ <quote>Wrapped</quote> is like <literal>aligned</> but wraps
1535
+ output to the specified width. If <literal>\pset columns</> is
1536
+ zero (the default), <literal>wrapped</> mode only affects screen
1537
+ output and wrapped width is controlled by the environment
1538
+ variable <envar>COLUMNS</> or the detected screen width. If
1539
+ <literal>\pset columns</> is set to a non-zero value, all output
1540
+ is wrapped, including file and pipe output.
1541
+ </para>
1542
+
1543
+ <para>
1544
+ The <quote><acronym>HTML</acronym></quote> and
1531
1545
<quote>LaTeX</quote> modes put out tables that are intended to
1532
1546
be included in documents using the respective mark-up
1533
1547
language. They are not complete documents! (This might not be
@@ -1537,6 +1551,17 @@ lo_import 152801
1537
1551
</listitem>
1538
1552
</varlistentry>
1539
1553
1554
+ <varlistentry>
1555
+ <term><literal>columns</literal></term>
1556
+ <listitem>
1557
+ <para>
1558
+ Controls the target width for the <literal>wrapped</> format.
1559
+ Zero (the default) causes the <literal>wrapped</> format to
1560
+ affect only screen output.
1561
+ </para>
1562
+ </listitem>
1563
+ </varlistentry>
1564
+
1540
1565
<varlistentry>
1541
1566
<term><literal>border</literal></term>
1542
1567
<listitem>
@@ -2706,6 +2731,18 @@ $endif
2706
2731
<title>Environment</title>
2707
2732
2708
2733
<variablelist>
2734
+
2735
+ <varlistentry>
2736
+ <term><envar>COLUMNS</envar></term>
2737
+
2738
+ <listitem>
2739
+ <para>
2740
+ Used for the <literal>wrapped</> output format if
2741
+ <literal>\pset columns</> is zero.
2742
+ </para>
2743
+ </listitem>
2744
+ </varlistentry>
2745
+
2709
2746
<varlistentry>
2710
2747
<term><envar>PAGER</envar></term>
2711
2748
0 commit comments