Re: [HACKERS] bugfix: xpath encoding issue - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: [HACKERS] bugfix: xpath encoding issue
Date
Msg-id 20170413151920.j6m5ftyltnyldo4y@alvherre.pgsql
Whole thread Raw
In response to [HACKERS] bugfix: xpath encoding issue  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: [HACKERS] bugfix: xpath encoding issue  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule wrote:
> Hi
> 
> When I tested XMLTABLE function I found a bug of XPATH function -
> xpath_internal
> 
> There xmltype is not correctly encoded to xmlChar due possible invalid
> encoding info in header. It is possible when XML was loaded with recv
> function and has not UTF8 encoding.

Hmm ... is it possible to create a test that verifies this?  I suppose
we could have a non-utf8 value as bytea.

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: [HACKERS] example for xmltable with XMLNAMESPACES
Next
From: Robert Haas
Date:
Subject: Re: [HACKERS] pg_dump emits ALTER TABLE ONLY partitioned_table