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 17:03:25 |
Message-ID: | CAJTaR32mosPfQJ_Vx2_ckuw05Muvz8ARVVyrA5-SLxidtQV0SA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
I hope that I realized old-ascii logic correctly.
2014-04-11 19:10 GMT+04:00 Greg Stark <stark(at)mit(dot)edu>:
> Looks good.
>
> It's still not doing the old-ascii column dividers but to be honest
> I'm not sure what the intended behaviour of old-ascii is. I've noticed
> old-ascii only displays the line markers for dividing lines, not the
> final one. That seems pretty useless and maybe it's why we switched to
> the new "ascii" mode, I don't recall.
>
> This is the way old-ascii displays when two columns are wrapping -- it
> seems pretty confused to me. The headers are displaying newline
> markers from the ascii style instead of : indicators in the dividing
> line. The : and ; markers are only displayed for the first column, not
> the second one.
>
> Maybe since the : and ; markers aren't shown for the final column that
> means the expanded mode doesn't have to do anything since the column
> is only ever the final column.
>
>
> +--------------------+-----------------+
> | x | x |
> |+ y |+ y |
> |+ z |+ z |
> +--------------------+-----------------+
> | x | xxxxxxxxxxxxxxx |
> | xx ; xxxx |
> | xxx : xxxxxxxxxxxxxxx |
> | xxxx ; xxx |
> | xxxxx : xxxxxxxxxxxxxxx |
> | xxxxxx ; xx |
> | xxxxxxx : xxxxxxxxxxxxxxx |
> | xxxxxxxx ; x |
> | xxxxxxxxx : xxxxxxxxxxxxxxx |
> | xxxxxxxxxx : xxxxxxxxxxxxxx |
> | xxxxxxxxxxx : xxxxxxxxxxxxx |
> | xxxxxxxxxxxx : xxxxxxxxxxxx |
> | xxxxxxxxxxxxx : xxxxxxxxxxx |
> | xxxxxxxxxxxxxx : xxxxxxxxxx |
> | xxxxxxxxxxxxxxx : xxxxxxxxx |
> | xxxxxxxxxxxxxxxx : xxxxxxxx |
> | xxxxxxxxxxxxxxxxx : xxxxxxx |
> | xxxxxxxxxxxxxxxxxx : xxxxxx |
> | xxxxxxxxxxxxxxxxxx : xxxxx |
> | x : xxxx |
> | xxxxxxxxxxxxxxxxxx : xxx |
> | xx : xx |
> | xxxxxxxxxxxxxxxxxx : x |
> | xxx : |
> | xxxxxxxxxxxxxxxxxx : |
> | xxxx : |
> | xxxxxxxxxxxxxxxxxx : |
> | xxxxx : |
> | xxxxxxxxxxxxxxxxxx : |
> | xxxxxx |
> | xxxxxxxxxxxxxxxxxx |
> | xxxxxxx |
> +--------------------+-----------------+
>
--
Best regards,
Sergey Muraviov
Attachment | Content-Type | Size |
---|---|---|
fix_psql_print_aligned_vertical_v7.patch | text/x-patch | 4.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2014-04-11 17:04:42 | Re: [PATCH] Negative Transition Aggregate Functions (WIP) |
Previous Message | Florian Pflug | 2014-04-11 16:40:58 | Re: [PATCH] Negative Transition Aggregate Functions (WIP) |