Re: XMLDocument (SQL/XML X030) - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: XMLDocument (SQL/XML X030)
Date
Msg-id 73dea15c-aec9-45b5-adf7-33d9a708a576@dunslane.net
Whole thread Raw
In response to XMLDocument (SQL/XML X030)  (Jim Jones <jim.jones@uni-muenster.de>)
Responses Re: XMLDocument (SQL/XML X030)
List pgsql-hackers
On 2024-12-10 Tu 2:48 AM, Jim Jones wrote:
> On 04.12.24 17:18, Jim Jones wrote:
>> I'd like to propose the implementation of XMLDocument (SQL/XML X030).
>> It basically returns an XML document from a given XML expression, e.g.
>>
>> SELECT
>>    xmldocument(
>>      xmlelement(NAME foo,
>>        xmlattributes(42 AS att),
>>        xmlelement(NAME bar,
>>          xmlconcat('va', 'lue'))
>>      )
>>    );
>>
>>               xmldocument
>> --------------------------------------
>>   <foo att="42"><bar>value</bar></foo>
>> (1 row)
> v1 attached attempts to implement XMLDocument() as described above.
>
> Feedback welcome.
>

LGTM at a first glance.


Please add this to the next CommitFest if you haven't done already.


cheers


andrew

--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Fix bank selection logic in SLRU
Next
From: Robert Haas
Date:
Subject: Re: Fix bank selection logic in SLRU