From: Denis de Bernardy <ddebernardy@yahoo.com>
To: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: expanded mode + wrapping in psql
Date: Fri, 10 Jun 2011 05:44:43 -0700 (PDT)
Message-ID: <44085.8003.qm@web112413.mail.gq1.yahoo.com> (raw)
Wrapping apparently doesn't want to work in expanded mode...
Lengthier discussion here:
http://stackoverflow.com/questions/6306063/
test=# \t
Showing only tuples.
test=# \pset border 0
Border style is 0.
test=# \pset format wrapped
Output format is wrapped.
test=# \pset columns 20
Target width for "wrapped" format is 20.
This works as expected:
test=# select id, name from test;
2 abc abc abc abc .
abc abc abc abc .
abc abc abc abc .
(etc.)
This doesn't:
test=# \x
Expanded display is on.
test=# select id, name from test;
id 2
name abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc abc
Expected result would be more like this, since wrapping for a column-width of 20 was set:
test=# select id, name from test;
id 2
name abc abc abc abc .
abc abc abc abc .
abc abc abc abc .
(etc.)
D.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: ddebernardy@yahoo.com
Subject: Re: expanded mode + wrapping in psql
In-Reply-To: <44085.8003.qm@web112413.mail.gq1.yahoo.com>
References: <44085.8003.qm@web112413.mail.gq1.yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox