Lists: | pgsql-hackers |
---|
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | new unicode table border styles for psql |
Date: | 2013-11-21 07:09:05 |
Message-ID: | CAFj8pRCLgoKtrYjPbToncpgyfTRcZ-ZgfOwdc1jquLB+eDe0Tw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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
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 08:07:12 |
Message-ID: | CAFjNrYtEY8ShGVPyvHs9cYFkjjRRnUMzDw7Mo1QvjwuptGRaaA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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
From: | amul sul <sul_amul(at)yahoo(dot)co(dot)in> |
---|---|
To: | Szymon Guz <mabewlun(at)gmail(dot)com>, 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 08:23:20 |
Message-ID: | 1385022200.58619.YahooMailNeo@web193505.mail.sg3.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
>YES!
+1
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Szymon Guz <mabewlun(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 19:20:12 |
Message-ID: | CAFj8pRAQjSr7jYv2RmdXM9UyJEZiMYrjjP=5b+on4-oBvFw9VA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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
>
Attachment | Content-Type | Size |
---|---|---|
psql-pretty-borders.patch | text/x-patch | 18.9 KB |
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:15:53 |
Message-ID: | CAFjNrYtXN4GfADHK2Uj7bcOLsxnLzR5AzNs2ONVaPKu8=qegzg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
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
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 |
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
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Szymon Guz <mabewlun(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 21:00:55 |
Message-ID: | CAFj8pRCm-9cGKQzqU9jnQy099k0QPXrxDG6261HomzFHxvQokQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | 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(at)gmail(dot)com> napsal(a):
> 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
>
From: | Merlin Moncure <mmoncure(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 21:35:58 |
Message-ID: | CAHyXU0yraNKRQL6FHioyZxoHLR7b7w6Dze_nnA=pE36=jZK1Fg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, Nov 21, 2013 at 1:09 AM, 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.
>
great. hm, maybe we could integrate color? (see:
http://merlinmoncure.blogspot.com/2012/09/psql-now-with-splash-of-color.html).
merlin
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-21 21:39:05 |
Message-ID: | 528E7D79.20205@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 11/21/13, 2:09 AM, Pavel Stehule 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?
Maybe make the border setting a string containing the various characters
by index. Then everyone can create their own crazy borders.
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-21 21:51:11 |
Message-ID: | 528E804F.1020801@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 11/21/2013 04:39 PM, Peter Eisentraut wrote:
> On 11/21/13, 2:09 AM, Pavel Stehule 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?
> Maybe make the border setting a string containing the various characters
> by index. Then everyone can create their own crazy borders.
>
Why not just reinvent termcap / terminfo? :-)
cheers
andrew
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-22 08:11:47 |
Message-ID: | CAFj8pRAzGLaad45Dui-z8oFcYuUgJf+zN_B=LoB9nMnwhNu=qw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hello
2013/11/21 Peter Eisentraut <peter_e(at)gmx(dot)net>
> On 11/21/13, 2:09 AM, Pavel Stehule 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?
>
> Maybe make the border setting a string containing the various characters
> by index. Then everyone can create their own crazy borders.
>
>
I seriously though about it, but not sure if it is good way.
- So we still have to deliver some basic set of styles still.
- People prefer prefabricate solution with simply activation now - so
customization use only a few people
- buitin style requires about 110 bytes and it is safe and verified,
dynamic styling requires some parser, maybe some other checks
So for this use case I prefer very primitive (and simple) design as was
proposed.
Regards
Pavel
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Merlin Moncure <mmoncure(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-22 08:23:48 |
Message-ID: | CAFj8pRBU=nPpA+faLiwLrRTNy-+CpHrQYLxO8-6psOQfiKp_ZA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Hello
2013/11/21 Merlin Moncure <mmoncure(at)gmail(dot)com>
> On Thu, Nov 21, 2013 at 1:09 AM, 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.
> >
> great. hm, maybe we could integrate color? (see:
>
> http://merlinmoncure.blogspot.com/2012/09/psql-now-with-splash-of-color.html
> ).
>
it is next possible enhancing - I would to go forward in small steps,
please :)
minimally (and independent on proposed patch) we can introduce some like
"final regexp filtering" - that can be used for this or other purposes.
Regards
Pavel
> merlin
>
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Szymon Guz <mabewlun(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-22 08:26:43 |
Message-ID: | CAFj8pRAQ7kyeP5bFinS+XgcHZOA-gdZo-Eya3Rqbq_vRryw_kA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
2013/11/21 Szymon Guz <mabewlun(at)gmail(dot)com>
> 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.
>
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 | Content-Type | Size |
---|---|---|
psql-pretty-borders.patch | text/x-patch | 20.5 KB |
From: | Merlin Moncure <mmoncure(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-22 14:31:39 |
Message-ID: | CAHyXU0wjpg+mjJMdbCxpg8iO8xREC2cZryxyFABaEa45dhgTng@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Fri, Nov 22, 2013 at 2:23 AM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> wrote:
> Hello
>
>
> 2013/11/21 Merlin Moncure <mmoncure(at)gmail(dot)com>
>>
>> On Thu, Nov 21, 2013 at 1:09 AM, 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.
>> >
>> great. hm, maybe we could integrate color? (see:
>>
>> http://merlinmoncure.blogspot.com/2012/09/psql-now-with-splash-of-color.html).
>
>
> it is next possible enhancing - I would to go forward in small steps, please
> :)
>
> minimally (and independent on proposed patch) we can introduce some like
> "final regexp filtering" - that can be used for this or other purposes.
Yeah. A per field regexp would do the trick. As you have it, I like
Peter's idea best. Being able to specify the various character codes
makes a lot of sense.
merlin
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Merlin Moncure <mmoncure(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-22 14:35:21 |
Message-ID: | CAFj8pRDkzN63d20tc-x6vbCgxOBhnZZBwfrN6MXNX=f3gxhRpg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
2013/11/22 Merlin Moncure <mmoncure(at)gmail(dot)com>
> On Fri, Nov 22, 2013 at 2:23 AM, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
> wrote:
> > Hello
> >
> >
> > 2013/11/21 Merlin Moncure <mmoncure(at)gmail(dot)com>
> >>
> >> On Thu, Nov 21, 2013 at 1:09 AM, 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.
> >> >
> >> great. hm, maybe we could integrate color? (see:
> >>
> >>
> http://merlinmoncure.blogspot.com/2012/09/psql-now-with-splash-of-color.html
> ).
> >
> >
> > it is next possible enhancing - I would to go forward in small steps,
> please
> > :)
> >
> > minimally (and independent on proposed patch) we can introduce some like
> > "final regexp filtering" - that can be used for this or other purposes.
>
> Yeah. A per field regexp would do the trick. As you have it, I like
> Peter's idea best. Being able to specify the various character codes
> makes a lot of sense.
>
there is other issue - simply parser will be really user unfriendly, and
user friendly parser will not by simply :(
have you some idea about input format?
Regards
Pavel
>
> merlin
>
From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-22 14:45:57 |
Message-ID: | 20131122144557.GK6041@eldon.alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Pavel Stehule escribió:
> 2013/11/21 Peter Eisentraut <peter_e(at)gmx(dot)net>
> > Maybe make the border setting a string containing the various characters
> > by index. Then everyone can create their own crazy borders.
> >
> I seriously though about it, but not sure if it is good way.
How about having a single "unicode" line style, and then have a
different \pset setting to determine exactly what chars to print? This
wouldn't allow for programmability, but it seems better UI to me.
This proliferation of unicode line style names seems odd.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-22 15:05:30 |
Message-ID: | CAHyXU0x73Cm7qmmHDv7pn+EBEENwOLCsRuP=cdEYabNKeUqESQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Fri, Nov 22, 2013 at 8:45 AM, Alvaro Herrera
<alvherre(at)2ndquadrant(dot)com> wrote:
> Pavel Stehule escribió:
>
>> 2013/11/21 Peter Eisentraut <peter_e(at)gmx(dot)net>
>
>> > Maybe make the border setting a string containing the various characters
>> > by index. Then everyone can create their own crazy borders.
>> >
>> I seriously though about it, but not sure if it is good way.
>
> How about having a single "unicode" line style, and then have a
> different \pset setting to determine exactly what chars to print? This
> wouldn't allow for programmability, but it seems better UI to me.
> This proliferation of unicode line style names seems odd.
That makes sense to me, especially if you could pass escapes.
merlin
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-22 19:29:09 |
Message-ID: | CAFj8pRAn0HKUeNOX1OthFJ+imDqzqUHGd7QKobP-=w43sQSLuA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
2013/11/22 Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
> Pavel Stehule escribió:
>
> > 2013/11/21 Peter Eisentraut <peter_e(at)gmx(dot)net>
>
> > > Maybe make the border setting a string containing the various
> characters
> > > by index. Then everyone can create their own crazy borders.
> > >
> > I seriously though about it, but not sure if it is good way.
>
> How about having a single "unicode" line style, and then have a
> different \pset setting to determine exactly what chars to print? This
> wouldn't allow for programmability, but it seems better UI to me.
> This proliferation of unicode line style names seems odd.
>
-1
After thinking I don't see any value for common user. Users like you, me,
Merlin are able to parametrize output or patching source code.
Any parametrization expect some secure store, that will support exchange of
styles. And it expect robust parser of unicode strings, or ascii strings
with unicode escaped chars.
We cannot parse a escaped unicode chars now on client side, and cost of
parser is higher of benefit externally parametrized borders.
Regards
Pavel
>
> --
> Įlvaro Herrera http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>
From: | Vik Fearing <vik(dot)fearing(at)dalibo(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-23 10:28:15 |
Message-ID: | 5290833F.4090804@dalibo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 11/21/2013 10:39 PM, Peter Eisentraut wrote:
> On 11/21/13, 2:09 AM, Pavel Stehule wrote:
>> 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?
> Maybe make the border setting a string containing the various characters
> by index. Then everyone can create their own crazy borders.
I vote for doing it this way.
We would provide a default setting, and the documentation would show
other examples. Perhaps even set up a "repository" on a wiki page or
something.
--
Vik
From: | Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
Cc: | Merlin Moncure <mmoncure(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-25 09:33:50 |
Message-ID: | m2d2lo6d1d.fsf@2ndQuadrant.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> there is other issue - simply parser will be really user unfriendly, and
> user friendly parser will not by simply :(
If simple things are hard to implement, get yourself better tools.
Each time we get on the topic of improving scripting abilities for our
interactive tool, it's always the same problem: having to invent a
scripting language with a whole parser is just too much work.
Maybe it's time we step back a little and consider real scripting
solutions to embed into psql, and pgbench too:
http://ecls.sourceforge.net/ LGPL Common Lisp
http://www.gnu.org/software/guile/ LGPL Scheme, Javascript, Emacs Lisp
http://www.lua.org/ MIT Lua
Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
From: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
---|---|
To: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-25 14:00:22 |
Message-ID: | CAHyXU0xKm5p_RbJy=n9sXcOtAcwqLkBmBeJ2=r=JLAawDOHbTA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Nov 25, 2013 at 3:33 AM, Dimitri Fontaine
<dimitri(at)2ndquadrant(dot)fr> wrote:
> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
>> there is other issue - simply parser will be really user unfriendly, and
>> user friendly parser will not by simply :(
>
> If simple things are hard to implement, get yourself better tools.
>
> Each time we get on the topic of improving scripting abilities for our
> interactive tool, it's always the same problem: having to invent a
> scripting language with a whole parser is just too much work.
>
> Maybe it's time we step back a little and consider real scripting
> solutions to embed into psql, and pgbench too:
I'm thinking (did I miss something?) that Pavel was commenting merely
on the parsing of setting unicode border characters, not the wider
scripting of psql. (psql scripting is a fun topic to discuss though
:-)).
merlin
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Merlin Moncure <mmoncure(at)gmail(dot)com> |
Cc: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-25 14:30:12 |
Message-ID: | 52935EF4.7040608@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 11/25/2013 09:00 AM, Merlin Moncure wrote:
> On Mon, Nov 25, 2013 at 3:33 AM, Dimitri Fontaine
> <dimitri(at)2ndquadrant(dot)fr> wrote:
>> Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
>>> there is other issue - simply parser will be really user unfriendly, and
>>> user friendly parser will not by simply :(
>> If simple things are hard to implement, get yourself better tools.
>>
>> Each time we get on the topic of improving scripting abilities for our
>> interactive tool, it's always the same problem: having to invent a
>> scripting language with a whole parser is just too much work.
>>
>> Maybe it's time we step back a little and consider real scripting
>> solutions to embed into psql, and pgbench too:
> I'm thinking (did I miss something?) that Pavel was commenting merely
> on the parsing of setting unicode border characters, not the wider
> scripting of psql. (psql scripting is a fun topic to discuss though
> :-)).
>
Even if it is it's totally off topic. Please don't hijack email threads.
cheers
andrew
From: | Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Merlin Moncure <mmoncure(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-25 14:33:03 |
Message-ID: | m27gbw5z6o.fsf@2ndQuadrant.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> Even if it is it's totally off topic. Please don't hijack email threads.
Well, when I read that parsing a user setup is too complex, for me that
calls for a solution that offers more power to the user without us
having to write specialized code each time.
I'm sorry, but I don't understand how off-topic or hijack applies here.
Regards,
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr> |
Cc: | Merlin Moncure <mmoncure(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-25 15:17:06 |
Message-ID: | 529369F2.7090103@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 11/25/2013 09:33 AM, Dimitri Fontaine wrote:
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> Even if it is it's totally off topic. Please don't hijack email threads.
> Well, when I read that parsing a user setup is too complex, for me that
> calls for a solution that offers more power to the user without us
> having to write specialized code each time.
>
> I'm sorry, but I don't understand how off-topic or hijack applies here.
>
It just seems to me to be a very big stretch to go from the topic of
psql border styles to the topic of psql scripting support. Your use case
would surely be using a sledgehammer to crack a nut. By all means argue
for better scripting support in psql, but I would suggest your argument
would be better if the use case were something more important and
central to psql's purpose.
cheers
andrew
From: | Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr> |
---|---|
To: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
Cc: | Merlin Moncure <mmoncure(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-25 15:26:55 |
Message-ID: | m21u244i4g.fsf@2ndQuadrant.fr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
>> I'm sorry, but I don't understand how off-topic or hijack applies here.
And I just realize there's another way to read what Pavel said, which is
that *user scripts* parsing the output of psql might become harder to
write as soon as they don't control the default border style in use.
Well in that case, yes I'm vastly off-topic.
I was answering to how to parse the user setting itself, so writing C
code inside the psql source tree itself, and how to expose a fine
grained solution to that problem without having to write a whole new
configuration parser.
> It just seems to me to be a very big stretch to go from the topic of psql
> border styles to the topic of psql scripting support. Your use case would
> surely be using a sledgehammer to crack a nut. By all means argue for better
> scripting support in psql, but I would suggest your argument would be better
> if the use case were something more important and central to psql's purpose.
I think I just understood something entirely different that what you
were talking about.
--
Dimitri Fontaine
http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, Merlin Moncure <mmoncure(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-26 13:39:36 |
Message-ID: | CAFj8pRB4zGj2_8zsOHv91dj8aP7zP-0GLyL34dijQt7hHrBLXw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
sorry for offtopic
2013/11/25 Dimitri Fontaine <dimitri(at)2ndquadrant(dot)fr>
> Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> > Even if it is it's totally off topic. Please don't hijack email threads.
>
> Well, when I read that parsing a user setup is too complex, for me that
> calls for a solution that offers more power to the user without us
> having to write specialized code each time.
>
I have a idea about sql shell with lua support - but probably as separate
application and partially written in Lua. I have no plan to push scripting
possibilities to psql.
Regards
Pavel
>
> I'm sorry, but I don't understand how off-topic or hijack applies here.
>
> Regards,
> --
> Dimitri Fontaine
> http://2ndQuadrant.fr PostgreSQL : Expertise, Formation et Support
>
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Szymon Guz <mabewlun(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-26 19:08:51 |
Message-ID: | 5294F1C3.9040200@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On 11/22/13, 3:26 AM, Pavel Stehule wrote:
> website is related to patch for 9.3 (I add note there)
>
> patch for 9.4 is fixed - and now with small doc
I think it would help if we considered the new border styles and the new
line styles separately.
I don't find the new border styles to be particularly useful. They just
use up vertical screen space, which is usually more precious than
vertical space. Is there a situation where you would find these styles
to be more useful than the existing ones? Keep in mind that pset is
usually set permanently, so it wouldn't be practical to use a different
border style depending on how the query results shape up (like \x auto).
Now for the linestyles. I can see how some of them are attractive, but
several of them have poor aesthetics, I think. I don't see a reason to
accept 7 new styles just for fun. If I had to choose, I'd consider
-double1 and -double4 to be acceptable.
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-26 19:23:32 |
Message-ID: | CAFj8pRDdoLR3v5+aJpbsPDQL-BZtFyu=McYQbsah1NHF1bar3g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
2013/11/26 Peter Eisentraut <peter_e(at)gmx(dot)net>
> On 11/22/13, 3:26 AM, Pavel Stehule wrote:
> > website is related to patch for 9.3 (I add note there)
> >
> > patch for 9.4 is fixed - and now with small doc
>
> I think it would help if we considered the new border styles and the new
> line styles separately.
>
> I don't find the new border styles to be particularly useful. They just
> use up vertical screen space, which is usually more precious than
> vertical space. Is there a situation where you would find these styles
> to be more useful than the existing ones? Keep in mind that pset is
> usually set permanently, so it wouldn't be practical to use a different
> border style depending on how the query results shape up (like \x auto).
>
> Now for the linestyles. I can see how some of them are attractive, but
> several of them have poor aesthetics, I think. I don't see a reason to
> accept 7 new styles just for fun. If I had to choose, I'd consider
> -double1 and -double4 to be acceptable.
>
+1
Pavel
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-27 14:14:35 |
Message-ID: | CAFj8pRBJed8ZQ5KMdH=Zw9=ex2jXTFG-zX=j_ADo70_16WW-PA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
2013/11/26 Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
>
>
>
> 2013/11/26 Peter Eisentraut <peter_e(at)gmx(dot)net>
>
>> On 11/22/13, 3:26 AM, Pavel Stehule wrote:
>> > website is related to patch for 9.3 (I add note there)
>> >
>> > patch for 9.4 is fixed - and now with small doc
>>
>> I think it would help if we considered the new border styles and the new
>> line styles separately.
>>
>> I don't find the new border styles to be particularly useful. They just
>> use up vertical screen space, which is usually more precious than
>> vertical space. Is there a situation where you would find these styles
>> to be more useful than the existing ones? Keep in mind that pset is
>> usually set permanently, so it wouldn't be practical to use a different
>> border style depending on how the query results shape up (like \x auto).
>>
>> Now for the linestyles. I can see how some of them are attractive, but
>> several of them have poor aesthetics, I think. I don't see a reason to
>> accept 7 new styles just for fun. If I had to choose, I'd consider
>> -double1 and -double4 to be acceptable.
>>
>
I am sending reduced patch
I add a double1, double4 and double5 - renamed to double1,double2, double3
support for border 3 and 4 removed
postgres=# \pset linestyle double1 \pset border 2 \l
Line style (linestyle) is double1.
Border style (border) is 2.
List of databases
┌───────────┬──────────┬──────────┬─────────────┬─────────────┬───────────────────────┐
│ Name │ Owner │ Encoding │ Collate │ Ctype │ Access
privileges │
╞═══════════╪══════════╪══════════╪═════════════╪═════════════╪═══════════════════════╡
│ postgres │ postgres │ UTF8 │ en_US.UTF-8 │ en_US.UTF-8
│ │
│ template0 │ postgres │ UTF8 │ en_US.UTF-8 │ en_US.UTF-8 │
=c/postgres │
│ │ │ │ │ │
postgres=CTc/postgres │
│ template1 │ postgres │ UTF8 │ en_US.UTF-8 │ en_US.UTF-8 │
=c/postgres │
│ │ │ │ │ │
postgres=CTc/postgres │
└───────────┴──────────┴──────────┴─────────────┴─────────────┴───────────────────────┘
(3 rows)
postgres=# \pset linestyle double2 \pset border 2 \l
Line style (linestyle) is double2.
Border style (border) is 2.
List of databases
╔═══════════╤══════════╤══════════╤═════════════╤═════════════╤═══════════════════════╗
║ Name │ Owner │ Encoding │ Collate │ Ctype │ Access
privileges ║
╟───────────┼──────────┼──────────┼─────────────┼─────────────┼───────────────────────╢
║ postgres │ postgres │ UTF8 │ en_US.UTF-8 │ en_US.UTF-8
│ ║
║ template0 │ postgres │ UTF8 │ en_US.UTF-8 │ en_US.UTF-8 │
=c/postgres ║
║ │ │ │ │ │
postgres=CTc/postgres ║
║ template1 │ postgres │ UTF8 │ en_US.UTF-8 │ en_US.UTF-8 │
=c/postgres ║
║ │ │ │ │ │
postgres=CTc/postgres ║
╚═══════════╧══════════╧══════════╧═════════════╧═════════════╧═══════════════════════╝
(3 rows)
postgres=# \pset linestyle double3 \pset border 2 \l
Line style (linestyle) is double3.
Border style (border) is 2.
List of databases
╔═══════════╦══════════╦══════════╦═════════════╦═════════════╦═══════════════════════╗
║ Name ║ Owner ║ Encoding ║ Collate ║ Ctype ║ Access
privileges ║
╠═══════════╬══════════╬══════════╬═════════════╬═════════════╬═══════════════════════╣
║ postgres ║ postgres ║ UTF8 ║ en_US.UTF-8 ║ en_US.UTF-8
║ ║
║ template0 ║ postgres ║ UTF8 ║ en_US.UTF-8 ║ en_US.UTF-8 ║
=c/postgres ║
║ ║ ║ ║ ║ ║
postgres=CTc/postgres ║
║ template1 ║ postgres ║ UTF8 ║ en_US.UTF-8 ║ en_US.UTF-8 ║
=c/postgres ║
║ ║ ║ ║ ║ ║
postgres=CTc/postgres ║
╚═══════════╩══════════╩══════════╩═════════════╩═════════════╩═══════════════════════╝
(3 rows)
Pavel
>
>
Attachment | Content-Type | Size |
---|---|---|
linestyle-double.patch | text/x-patch | 5.0 KB |
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-28 21:23:53 |
Message-ID: | CA+TgmoZugLC85hS0EjmhGWphTyCHMYQTUTQ4W9LaRd7pdkezcg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Nov 26, 2013 at 2:08 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> Now for the linestyles. I can see how some of them are attractive, but
> several of them have poor aesthetics, I think. I don't see a reason to
> accept 7 new styles just for fun. If I had to choose, I'd consider
> -double1 and -double4 to be acceptable.
I'm confused why we need ANY of these. What problem are we solving
that the existing unicode style doesn't already solve? We could
doubtless invent an infinite or at least very large number of
plausible ways to border psql output, but I don't see that as
something that has value.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-28 21:48:54 |
Message-ID: | 20131128214854.GI5513@eldon.alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Robert Haas escribió:
> On Tue, Nov 26, 2013 at 2:08 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > Now for the linestyles. I can see how some of them are attractive, but
> > several of them have poor aesthetics, I think. I don't see a reason to
> > accept 7 new styles just for fun. If I had to choose, I'd consider
> > -double1 and -double4 to be acceptable.
>
> I'm confused why we need ANY of these. What problem are we solving
> that the existing unicode style doesn't already solve? We could
> doubtless invent an infinite or at least very large number of
> plausible ways to border psql output, but I don't see that as
> something that has value.
You know what I think would have some value? An output style that emits
DocBook markup for tables, something which we could paste on the docs.
(I already use the LaTeX mode to paste in presentation slides.)
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-28 22:00:05 |
Message-ID: | CA+TgmoYVs_qRGNfqCKxJyag_ddGnnHukmja9UWdaAEwdb7uu3g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, Nov 28, 2013 at 4:48 PM, Alvaro Herrera
<alvherre(at)2ndquadrant(dot)com> wrote:
> Robert Haas escribió:
>> On Tue, Nov 26, 2013 at 2:08 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
>> > Now for the linestyles. I can see how some of them are attractive, but
>> > several of them have poor aesthetics, I think. I don't see a reason to
>> > accept 7 new styles just for fun. If I had to choose, I'd consider
>> > -double1 and -double4 to be acceptable.
>>
>> I'm confused why we need ANY of these. What problem are we solving
>> that the existing unicode style doesn't already solve? We could
>> doubtless invent an infinite or at least very large number of
>> plausible ways to border psql output, but I don't see that as
>> something that has value.
>
> You know what I think would have some value? An output style that emits
> DocBook markup for tables, something which we could paste on the docs.
> (I already use the LaTeX mode to paste in presentation slides.)
Sure. I have never personally wanted that, but I see the value of it:
it makes something that's probably annoying to do right now simple.
That's a functional enhancement; this is not.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-29 02:10:09 |
Message-ID: | 1385691009.14059.0.camel@vanquo.pezone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, 2013-11-28 at 16:23 -0500, Robert Haas wrote:
> On Tue, Nov 26, 2013 at 2:08 PM, Peter Eisentraut <peter_e(at)gmx(dot)net>
> wrote:
> > Now for the linestyles. I can see how some of them are attractive,
> but
> > several of them have poor aesthetics, I think. I don't see a reason
> to
> > accept 7 new styles just for fun. If I had to choose, I'd consider
> > -double1 and -double4 to be acceptable.
>
> I'm confused why we need ANY of these.
I'm not actually in favor of adding any of these. I was just trying to
say that any but the ones I mentioned I don't consider acceptable at
all.
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-29 02:12:28 |
Message-ID: | 1385691148.14059.2.camel@vanquo.pezone.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Thu, 2013-11-28 at 18:48 -0300, Alvaro Herrera wrote:
> An output style that emits
> DocBook markup for tables, something which we could paste on the docs.
DocBook supports HTML tables from version 4.3 on. We currently use
version 4.2, but we could presumably raise that if needed.
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Peter Eisentraut <peter_e(at)gmx(dot)net>, Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-29 07:28:01 |
Message-ID: | CAFj8pRCA7H2ndgtWmaiYKX50YQThre=v+bQfpCbTuJyRig_sPA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
2013/11/28 Robert Haas <robertmhaas(at)gmail(dot)com>
> On Tue, Nov 26, 2013 at 2:08 PM, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> > Now for the linestyles. I can see how some of them are attractive, but
> > several of them have poor aesthetics, I think. I don't see a reason to
> > accept 7 new styles just for fun. If I had to choose, I'd consider
> > -double1 and -double4 to be acceptable.
>
> I'm confused why we need ANY of these. What problem are we solving
> that the existing unicode style doesn't already solve? We could
> doubtless invent an infinite or at least very large number of
> plausible ways to border psql output, but I don't see that as
> something that has value.
>
It has primary aesthetic value - not much more (similar value has original
unicode border)
With this patch you can prepare a little bit nicer (plain text) reports
without using special software. And a implementation is really simply - so
it offer sympathetic benefit without any cost.
Regards
Pavel
>
> --
> Robert Haas
> EnterpriseDB: http://www.enterprisedb.com
> The Enterprise PostgreSQL Company
>
From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Robert Haas <robertmhaas(at)gmail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Szymon Guz <mabewlun(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: new unicode table border styles for psql |
Date: | 2013-11-29 07:33:04 |
Message-ID: | CAFj8pRA_OGhH7zJNqM2qGq5XRymw_NjB8fLrqcEia39T+YAGpA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
2013/11/28 Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
> Robert Haas escribió:
> > On Tue, Nov 26, 2013 at 2:08 PM, Peter Eisentraut <peter_e(at)gmx(dot)net>
> wrote:
> > > Now for the linestyles. I can see how some of them are attractive, but
> > > several of them have poor aesthetics, I think. I don't see a reason to
> > > accept 7 new styles just for fun. If I had to choose, I'd consider
> > > -double1 and -double4 to be acceptable.
> >
> > I'm confused why we need ANY of these. What problem are we solving
> > that the existing unicode style doesn't already solve? We could
> > doubtless invent an infinite or at least very large number of
> > plausible ways to border psql output, but I don't see that as
> > something that has value.
>
> You know what I think would have some value? An output style that emits
> DocBook markup for tables, something which we could paste on the docs.
> (I already use the LaTeX mode to paste in presentation slides.)
>
Although it sounds crazy - some unicode-doubleX looks well (although it is
subjective) and I use it in presentation (and wiki) too - just copy/paste.
Nothing against DocBook support (or any modern markdown (mediawiki, ..)
formats).
Pavel
> --
> Álvaro Herrera http://www.2ndQuadrant.com/
> PostgreSQL Development, 24x7 Support, Training & Services
>