From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | "Murphy, Kevin" <MURPHYKE(at)email(dot)chop(dot)edu> |
Cc: | "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Very minor feature suggestion |
Date: | 2012-10-19 18:29:37 |
Message-ID: | CA+TgmoZWuEw8ZLAwgab4Y8oJOUot1QMiLq31ZpPbYyVJKmkOwg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Oct 18, 2012 at 12:31 PM, Murphy, Kevin <MURPHYKE(at)email(dot)chop(dot)edu> wrote:
> It might be nice for psql to have a 'htmlcaption' boolean pset option that would wrap the provided title/caption, if any, in a caption tag in the HTML report output, when using html format.
>
> Motivation:
>
> When I use:
>
> \pset title 'Some title'
>
> or
>
> \C 'Some title'
>
> psql emits the text:
>
> Title is "Some title".
>
> even when using html format. This seems more like a diagnostic/annotation (like 'Title is unset', which is what you get from a plain "\pset title") than report output. For casual use, even "\echo Some title" is more pleasant, except for post-processing by scripts, which people are no doubt doing. When using html format, it would arguably be better for the title to be wrapped in a caption tag inside the table itself. You couldn't change the default behavior, but the html caption would be a nice option.
Gee, why NOT change the default behavior?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2012-10-19 18:30:53 | Re: Bug in -c CLI option of pg_dump/pg_restore |
Previous Message | Robert Haas | 2012-10-19 18:28:45 | Re: assertion failure w/extended query protocol |