Re: Problem with displaying "wide" tables in psql

From: Sergey Muraviov <sergey(dot)k(dot)muraviov(at)gmail(dot)com>
To: Greg Stark <stark(at)mit(dot)edu>
Cc: Andres Freund <andres(at)2ndquadrant(dot)com>, Emre Hasegeli <emre(at)hasegeli(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Problem with displaying "wide" tables in psql
Date: 2014-04-11 07:13:38
Message-ID: CAJTaR33PrOP5uoZa7JjfTEPjvEjwUTCuJFRBuwwOEnD-edyZJw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi.

I've done some corrections for printing "newline" and "wrap" indicators.
Please review the attached patch.

2014-04-11 0:14 GMT+04:00 Sergey Muraviov <sergey(dot)k(dot)muraviov(at)gmail(dot)com>:

> Hi.
>
> Thanks for your tests.
>
> I've fixed problem with headers, but got new one with data.
> I'll try to solve it tomorrow.
>
>
> 2014-04-10 18:45 GMT+04:00 Greg Stark <stark(at)mit(dot)edu>:
>
> Ok, So I've hacked on this a bit. Below is a test case showing the
>> problems I've found.
>>
>> 1) It isn't using the "newline" and "wrap" indicators or dividing lines.
>>
>> 2) The header is not being displayed properly when it contains a newline.
>>
>> I can hack in the newline and wrap indicators but the header
>> formatting requires reworking the logic a bit. The header and data
>> need to be stepped through in parallel rather than having a loop to
>> handle the wrapping within the handling of a single line. I don't
>> really have time for that today but if you can get to it that would be
>> fine,
>>
>
>
>
> --
> Best regards,
> Sergey Muraviov
>

--
Best regards,
Sergey Muraviov

Attachment Content-Type Size
fix_psql_print_aligned_vertical_v6.patch text/x-patch 4.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dean Rasheed 2014-04-11 08:39:57 Re: WIP patch (v2) for updatable security barrier views
Previous Message Pavel Stehule 2014-04-11 06:43:36 proposal: interprocess EXPLAIN PID