Re: How to do an update with XML column ?

From: Francisco Olarte <folarte(at)peoplecall(dot)com>
To: celati Laurent <laurent(dot)celati(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to do an update with XML column ?
Date: 2024-12-18 12:39:10
Message-ID: CA+bJJbzn5CdcX6upaMh598QuqvJed7sU1uDJPW_-MAW7cCGR5A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi:

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Laurenz Albe 2024-12-18 14:28:43 Re: Query about pg_wal directory filled up
Previous Message Pawan Sharma 2024-12-18 11:52:32 PG16 ADMIN OPTION