The following bug has been logged on the website:
Bug reference: 16046
Logged by: Mohammad Mostafa Kamal
Email address: mostafa_bit0108(at)hotmail(dot)com
PostgreSQL version: 12.0
Operating system: Windows 7
Description:
While using xpath to extract text from a CDATA section of xml, it returns
CDATA tag along with the value.
Query: SELECT
unnest(xpath('//cname/aname/text()','<cname><aname><![CDATA[select
5]]></aname></cname>'::xml))
Output - pg11: select 5
Output - pg12: <![CDATA[select 5]]>