Re: How to do an update with XML column ? - Mailing list pgsql-general

From Francisco Olarte
Subject Re: How to do an update with XML column ?
Date
Msg-id CA+bJJbzn5CdcX6upaMh598QuqvJed7sU1uDJPW_-MAW7cCGR5A@mail.gmail.com
Whole thread Raw
In response to How to do an update with XML column ?  (celati Laurent <laurent.celati@gmail.com>)
List pgsql-general
Hi:

On Wed, 18 Dec 2024 at 11:00, celati Laurent <laurent.celati@gmail.com> 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.



pgsql-general by date:

Previous
From: Pawan Sharma
Date:
Subject: PG16 ADMIN OPTION
Next
From: Laurenz Albe
Date:
Subject: Re: Query about pg_wal directory filled up