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 CAFj8pRCm-9cGKQzqU9jnQy099k0QPXrxDG6261HomzFHxvQokQ@mail.gmail.com
Whole thread Raw
In response to Re: new unicode table border styles for psql  (Szymon Guz <mabewlun@gmail.com>)
List pgsql-hackers

I should to appen list of new styles to doc. Style double6 doesnt exist, because I renamed double5 to bold1 (and created second bold2)

I will update patch tomorrow - it will be in cf4

Regards

Pavel

Dne 21.11.2013 21:37 "Szymon Guz" <mabewlun@gmail.com> napsal(a):
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.

regards,
Szymon

pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: preserving forensic information when we freeze
Next
From: Heikki Linnakangas
Date:
Subject: Re: Data corruption issues using streaming replication on 9.0.14/9.2.5/9.3.1