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
getfrom a plain "\pset title") than report output. For casual use, even "\echo Some title" is more pleasant, except
forpost-processing by scripts, which people are no doubt doing. When using html format, it would arguably be better
forthe title to be wrapped in a caption tag inside the table itself. You couldn't change the default behavior, but the
htmlcaption would be a nice option.
Regards,
Kevin Murphy