Skip site navigation (1) Skip section navigation (2)

Re: Proposed patch - psql wraps at window width

From: Bryce Nesbitt <bryce(at)citycarshare(dot)org>
To: Gregory Stark <stark(at)enterprisedb(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proposed patch - psql wraps at window width
Date: 2008-04-30 19:28:05
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Gregory Stark wrote:
> [No I wasn't thinking of that, that's an interesting case too though I think
> we might need to think a bit harder about cases that wrap poorly. If you have
> long column headings we could wrap those too. But what if you have enough
> space for just a few characters per column and you have long text fields in
> those columns?]
I've been using this patch for months.

After the first week, I switched to the behavior above (the wrap code 
gives up at a certain point).  It is a lot better, try it for yourself.  
If you try to cram too much stuff onto a line it's going to become an 
even more unreadable mess of very very tall columns.

Wrapping column headings only gets you so far, delaying the inevitable a 
little bit.  A patch to squeeze out extra header space, or abbreviate 
headers would be an advance.

\pset format aligned autowrap
\pset format aligned 80

In response to

pgsql-hackers by date

Next:From: Bryce NesbittDate: 2008-04-30 19:43:19
Subject: Re: Proposed patch - psql wraps at window width
Previous:From: Gurjeet SinghDate: 2008-04-30 17:54:21
Subject: TidScan needs handling of a corner cases

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group