From 5adf98ae24fe0bef54120f378ae5f75a4f69cc6c Mon Sep 17 00:00:00 2001
From: Bruce Momjian
Date: Thu, 8 May 2008 17:04:26 +0000
Subject: Add psql '\pset format wrapped' mode to wrap output to screen width,
or file/pipe output too if \pset columns' is set.
Bryce Nesbitt
---
doc/src/sgml/ref/psql-ref.sgml | 45 ++++++++++++++++++++++++++++++++++++++----
1 file changed, 41 insertions(+), 4 deletions(-)
(limited to 'doc/src')
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index 72bae112701..5a0ecb6ea8f 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
@@ -1514,7 +1514,8 @@ lo_import 152801
Sets the output format to one of unaligned,
- aligned, html,
+ aligned, wrapped,
+ html,
latex, or troff-ms.
Unique abbreviations are allowed. (That would mean one letter
is enough.)
@@ -1526,8 +1527,21 @@ lo_import 152801
is intended to create output that might be intended to be read
in by other programs (tab-separated, comma-separated).
Aligned
mode is the standard, human-readable,
- nicely formatted text output that is default. The
- HTML
and
+ nicely formatted text output that is default.
+
+
+
+ Wrapped
is like aligned> but wraps
+ output to the specified width. If \pset columns> is
+ zero (the default), wrapped> mode only affects screen
+ output and wrapped width is controlled by the environment
+ variable COLUMNS> or the detected screen width. If
+ \pset columns> is set to a non-zero value, all output
+ is wrapped, including file and pipe output.
+
+
+
+ The HTML
and
LaTeX
modes put out tables that are intended to
be included in documents using the respective mark-up
language. They are not complete documents! (This might not be
@@ -1537,6 +1551,17 @@ lo_import 152801
+
+ columns
+
+
+ Controls the target width for the wrapped> format.
+ Zero (the default) causes the wrapped> format to
+ affect only screen output.
+
+
+
+
border
@@ -2706,6 +2731,18 @@ $endif
Environment
+
+
+ COLUMNS
+
+
+
+ Used for the wrapped> output format if
+ \pset columns> is zero.
+
+
+
+
PAGER
--
cgit v1.2.3