Re: new unicode table border styles for psql - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: new unicode table border styles for psql
Date
Msg-id CAFj8pRAQ7kyeP5bFinS+XgcHZOA-gdZo-Eya3Rqbq_vRryw_kA@mail.gmail.com
Whole thread Raw
In response to Re: new unicode table border styles for psql  (Szymon Guz <mabewlun@gmail.com>)
Responses Re: new unicode table border styles for psql  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers



2013/11/21 Szymon Guz <mabewlun@gmail.com>
On 21 November 2013 21:15, Szymon Guz <mabewlun@gmail.com> wrote:



On 21 November 2013 20:20, Pavel Stehule <pavel.stehule@gmail.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@gmail.com>
On 21 November 2013 08:09, Pavel Stehule <pavel.stehule@gmail.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.

website is related to patch for 9.3 (I add note there)

patch for 9.4 is fixed - and now with small doc

Regards

Pavel
 

regards,
Szymon

Attachment

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: gaussian distribution pgbench
Next
From: Marko Kreen
Date:
Subject: Re: PL/Python: domain over array support