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 042a478b-4927-4683-b80c-79e6f1a2f4bc@uni-muenster.de
Whole thread Raw
In response to Re: [PATCH] Add CANONICAL option to xmlserialize  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: [PATCH] Add CANONICAL option to xmlserialize
List pgsql-hackers
Hi Andrew

On 30/03/2026 11:44, Andrew Dunstan wrote:
> Here's a very minor tidy up:
> 
> - Split Datum xmlcanonicalize(PG_FUNCTION_ARGS) across two lines
> - Fixed variable declaration alignment
> - Replaced 11-line verbose comment with a single-line /* Canonicalize
> the entire document using C14N 1.1 */
> - Moved #include <libxml/c14n.h> to alphabetical position
> - Removed unnecessary if (doc) / if (xmlbuf) guards on the success-path
> cleanup
> - Added spaces after casts: (xmlDocPtr) doc, (xmlChar *) xmlbuf,
> (xmlChar **) &xmlbuf
> 
> 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.


Thanks for the code review!

In your v22, I can't find the changes you mentioned. Is it possible that
the wrong file was attached, or were these changes intended for v23?

Best, Jim





pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: [PATCH] Add CANONICAL option to xmlserialize
Next
From: "Hayato Kuroda (Fujitsu)"
Date:
Subject: RE: Parallel Apply