Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vu277-0002uL-JY for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Dec 2013 15:35:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vu277-0002VN-1F for pgsql-bugs@arkaria.postgresql.org; Fri, 20 Dec 2013 15:35:45 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vu275-0002UA-Qf for pgsql-bugs@postgresql.org; Fri, 20 Dec 2013 15:35:43 +0000 Received: from eisentraut.org ([85.214.91.16] helo=gattler.pezone.net) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vu272-0007m1-Nb for pgsql-bugs@postgresql.org; Fri, 20 Dec 2013 15:35:43 +0000 Received: from jesse.mybdev.com (unknown [204.145.120.11]) by gattler.pezone.net (Postfix) with ESMTPSA id 3977A59000F; Fri, 20 Dec 2013 15:35:38 +0000 (UTC) Message-ID: <52B463CC.50300@gmx.net> Date: Fri, 20 Dec 2013 10:35:40 -0500 From: Peter Eisentraut User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: cbfgterfdy@zacglen.net, pgsql-bugs@postgresql.org Subject: Re: BUG #8662: psql -H and ts_headline References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.5 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org On 12/6/13, 7:03 PM, cbfgterfdy@zacglen.net wrote: > 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. How would you address that? There is no way for psql or any other client to know that the text data that is being returned is actually HTML. A proper fix would be having an HTML data type, or having ts_headline() return type XML. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs