Re: [PATCH] Add CANONICAL option to xmlserialize - Mailing list pgsql-hackers

From Jim Jones
Subject Re: [PATCH] Add CANONICAL option to xmlserialize
Date
Msg-id 930c0f95-c82f-45f6-a74f-a13d2dc06679@uni-muenster.de
Whole thread Raw
In response to Re: [PATCH] Add CANONICAL option to xmlserialize  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers

On 30/03/2026 11:44, Andrew Dunstan wrote:
> I note that your function returns xml, whereas Tom's suggestion was for
> a function returning text. I don't think there was any discussion on the
> point.

Indeed, there was no discussion regarding the return type.

My rationale for keeping it as xml was: the output is xml, callers can
immediately use the xml without casting, and nearly all other xml*
functions return xml. Is there a direct advantage of having this
function return text?

Thanks!

Best, Jim




pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: CAST(... ON DEFAULT) - WIP build on top of Error-Safe User Functions
Next
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] Add CANONICAL option to xmlserialize