Re: Problem with displaying "wide" tables in psql - Mailing list pgsql-hackers

From Jeff Janes
Subject Re: Problem with displaying "wide" tables in psql
Date
Msg-id CAMkU=1zDO8fiKE7vNqyj9Lfu2oLrA5PcuyKU=_4TUZB8Z1r-RQ@mail.gmail.com
Whole thread Raw
In response to Problem with displaying "wide" tables in psql  (Sergey Muraviov <sergey.k.muraviov@gmail.com>)
Responses Re: Problem with displaying "wide" tables in psql
List pgsql-hackers
On Mon, Dec 2, 2013 at 10:45 PM, Sergey Muraviov <sergey.k.muraviov@gmail.com> wrote:
Hi.

Psql definitely have a problem with displaying "wide" tables.
Even in expanded mode, they look horrible.
So I tried to solve this problem.

I get compiler warnings:

print.c: In function 'print_aligned_vertical':
print.c:1238: warning: ISO C90 forbids mixed declarations and code
print.c: In function 'print_aligned_vertical':
print.c:1238: warning: ISO C90 forbids mixed declarations and code

But I really like this and am already benefiting from it.  No point in having the string of hyphens between every record wrap to be 30 lines long just because one field somewhere down the list does so.  And configuring the pager isn't much of a solution because the pager doesn't know that the hyphens are semantically different than the other stuff getting thrown at it.

Cheers,

Jeff

 

pgsql-hackers by date:

Previous
From: Jim Nasby
Date:
Subject: Re: Re: [RFC] Shouldn't we remove annoying FATAL messages from server log?
Next
From: Jim Nasby
Date:
Subject: Re: [RFC] Shouldn't we remove annoying FATAL messages from server log?