Very minor feature suggestion

From: "Murphy, Kevin" <MURPHYKE(at)email(dot)chop(dot)edu>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Very minor feature suggestion
Date: 2012-10-18 16:31:29
Message-ID: 090AC30B5193D249B27BDD3B29AC7F7F082B01@EXCMBXPW1.chop.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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.

Regards,
Kevin Murphy

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2012-10-18 16:38:50 Re: Deprecations in authentication
Previous Message Alvaro Herrera 2012-10-18 16:22:40 Re: xlog filename formatting functions in recovery