BUG #8662: psql -H and ts_headline - Mailing list pgsql-bugs

From cbfgterfdy@zacglen.net
Subject BUG #8662: psql -H and ts_headline
Date
Msg-id E1Vp5Mw-00089V-Mm@wrigleys.postgresql.org
Whole thread Raw
Responses Re: BUG #8662: psql -H and ts_headline  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      8662
Logged by:          JW
Email address:      cbfgterfdy@zacglen.net
PostgreSQL version: 9.2.4
Operating system:   Linux
Description:

While "psql -H" is quite useful there is flaw when a query includes
ts_headline(). The highlighting html gets escaped along with any other html
special characters.


One can pipe the psql output through sed and undo the special character
conversion. But it would perhaps be nicer if there was some way of allowing
embedded html in results if so wanted.


The html output doesn't have any escaping mechanism what-so-ever.

pgsql-bugs by date:

Previous
From: Strahinja Kustudić
Date:
Subject: Re: BUG #8632: file "pg_subtrans/CEC0" doesn't exist, reading as zeroes
Next
From: Peter Geoghegan
Date:
Subject: stats_temp_directory SIGHUP documentation bug