pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
expanded mode + wrapping in psql
2+ messages / 2 participants
[nested] [flat]

* expanded mode + wrapping in psql
@ 2011-06-10 12:44  Denis de Bernardy <ddebernardy@yahoo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Denis de Bernardy @ 2011-06-10 12:44 UTC (permalink / raw)
  To: pgsql-bugs

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.



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: expanded mode + wrapping in psql
@ 2011-06-10 14:21  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Denis de Bernardy <ddebernardy@yahoo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2011-06-10 14:21 UTC (permalink / raw)
  To: Denis de Bernardy <ddebernardy@yahoo.com>; +Cc: pgsql-bugs

Denis de Bernardy <ddebernardy@yahoo.com> writes:
> Wrapping apparently doesn't want to work in expanded mode...

No, it's not supposed to.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2011-06-10 14:21 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-10 12:44 expanded mode + wrapping in psql Denis de Bernardy <ddebernardy@yahoo.com>
2011-06-10 14:21 ` Tom Lane <tgl@sss.pgh.pa.us>

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