Re: new unicode table border styles for psql

From: Szymon Guz <mabewlun(at)gmail(dot)com>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new unicode table border styles for psql
Date: 2013-11-21 20:37:58
Message-ID: CAFjNrYszSmViE6ETJw95Lj1KUxu-jMc6FKGjjo3TL5_RSP_Pcw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 21 November 2013 21:15, Szymon Guz <mabewlun(at)gmail(dot)com> wrote:

>
>
>
> On 21 November 2013 20:20, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
>
>> So here is patch for 9.4
>>
>> 7 new line styles, 2 new border styles, \pset border autocomplete
>>
>> Regards
>>
>> Pavel
>>
>>
>>
>>
>> 2013/11/21 Szymon Guz <mabewlun(at)gmail(dot)com>
>>
>>> On 21 November 2013 08:09, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>wrote:
>>>
>>>> Hello
>>>>
>>>> I wrote new styles for psql table borders.
>>>>
>>>> http://postgres.cz/wiki/Pretty_borders_in_psql
>>>>
>>>> This patch is simply and I am think so some styles can be interesting
>>>> for final presentation.
>>>>
>>>> Do you think so this feature is generally interesting and should be in
>>>> core?
>>>>
>>>> Regards
>>>>
>>>> Pavel
>>>>
>>>
>>> YES!
>>>
>>> - Szymon
>>>
>>
>>
> That's pretty cool, I'd love to see it in the core, however it doesn't
> contain any documentation, so I'm afraid it will be hard to use for people.
>
> thanks,
> Szymon
>

Hi Pavel,
I've found two errors in the documentation at
http://postgres.cz/wiki/Pretty_borders_in_psql

1)

The unicode-double5 style looks like:

x=# select * from t;
┌───┬───┬───┐
│ a │ b │ t │
╞═══╪═══╪═══╡
│ 1 │ 1 │ a │
├───┼───┼───┤
│ 2 │ 2 │ b │
├───┼───┼───┤
│ 3 │ 3 │ c │
└───┴───┴───┘
(3 rows)

(There are horizontal lines between rows)

2) There is no unicode-double6 in psql, however it exists on the website.

regards,
Szymon

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2013-11-21 20:39:54 Re: Data corruption issues using streaming replication on 9.0.14/9.2.5/9.3.1
Previous Message Joshua D. Drake 2013-11-21 20:36:28 Re: Data corruption issues using streaming replication on 9.0.14/9.2.5/9.3.1