Hi: On Wed, 18 Dec 2024 at 11:00, celati Laurent <laurent.celati@xxxxxxxxx> wrote: > ERROR: could not identify an equality operator for type xml > LINE 39: group by orga_name > ^ Have you tried the obvious group by cast(orga_name as text) ? Never used XML but most types in postgres convert to text injectively ( but not bijectively ) ( I mean, same values, same text, but you can have different text same values ( like the obvious text->float conversion )) Francisco Olarte.