Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context - Mailing list pgsql-hackers

From Ramanarayana
Subject Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context
Date
Msg-id CAKm4Xs58Le70Tp-ykUXG7XVcyHTtW3-JH8MrcRCb3_=3Gjr5EA@mail.gmail.com
Whole thread Raw
In response to Re: POC: converting Lists into arrays  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: XML/XPath issues: text/CDATA in XMLTABLE, XPath evaluated withwrong context
List pgsql-hackers
Hi,
        I have tested the three issues fixed in patch 001. Array Indexes issue is still there.Running the following query returns ERROR: more than one value returned by column XPath expression

SELECT xmltable.*
FROM (SELECT data FROM xmldata) x,
LATERAL XMLTABLE('/ROWS/ROW'
PASSING data
COLUMNS
country_name text PATH 'COUNTRY_NAME/text()' NOT NULL,
size_text float PATH 'SIZE/text()',
size_text_1 float PATH 'SIZE/text()[1]',
size_text_2 float PATH 'SIZE/text()[2]',
"SIZE" float, size_xml xml PATH 'SIZE')  
 
The other two issues are resolved by this patch.


--
Cheers
Ram 4.0

pgsql-hackers by date:

Previous
From: Fabien COELHO
Date:
Subject: Re: get_controlfile() can leak fds in the backend
Next
From: David Steele
Date:
Subject: 2019-03 Starts Tomorrow