Re: [PATCH] Add CANONICAL option to xmlserialize
Jim Jones <jim.jones@uni-muenster.de>
From: Jim Jones <jim.jones@uni-muenster.de>
To: Chapman Flack <chap@anastigmatix.net>
Cc: vignesh C <vignesh21@gmail.com>, Thomas Munro <thomas.munro@gmail.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-10-05T07:38:20Z
Lists: pgsql-hackers
Attachments
- v8-0001-Add-CANONICAL-output-format-to-xmlserialize.patch (text/x-patch) patch v8-0001
Hi Chap On 04.10.23 23:05, Chapman Flack wrote: > I hope I'm not butting in, but I too would be leery of any default > behavior that's going to say thing1 and thing2 are the same thing > but ignoring (name part of thing here). If that's the comparison > I mean to make, and it's as easy as CANONICAL WITHOUT COMMENTS > to say that's what I mean, I'd be happy to write that. It also means > that the next person reading my code will know "oh, he means > 'same' in *that* way", without having to think about it. That's a very compelling argument. Thanks for that! It is indeed clearer to only remove items from the result set if explicitly said so. v8 attached changes de default behaviour to WITH COMMENTS. Best, Jim