pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: gajendra s v <svgajendra@gmail.com>
To: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: org.postgresql.util.PSQLException: ERROR: could not identify an equality operator for type xml
Date: Tue, 19 Nov 2013 14:11:04 -0800 (PST)
Message-ID: <1384899064.80953.YahooMailNeo@web162904.mail.bf1.yahoo.com> (raw)
In-Reply-To: <CAHjig8_uudM=qYo1e9yVuG+FZpFD4NRLRdBJgOOMEGV+cx+sDA@mail.gmail.com>
References: <CAHjig8_uudM=qYo1e9yVuG+FZpFD4NRLRdBJgOOMEGV+cx+sDA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

gajendra s v <svgajendra@gmail.com> wrote:

> I have added one column with xml type ,after adding I am getting
> following error.
>
> org.postgresql.util.PSQLException: ERROR: could not identify an equality operator for type xml

The UNION operation requires comparing all columns in the result
record to remove duplicates.  To identify duplicates, there must be
a notion of equality defined (getting technical here) by a default
btree opclass for the type.  XML does not have one, so UNION of a
result set including an XML column is not allowed.

Do you need the duplicate removal?  If not, use UNION ALL.  If you
need that you may need to cast the XML to text for intermediate
steps and then cast back to XML at the outermost level.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



view thread (11+ messages)  latest in thread

Message-ID: <1384899064.80953.YahooMailNeo@web162904.mail.bf1.yahoo.com>
Permalink:  ../1384899064.80953.YahooMailNeo@web162904.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1384899064.80953.YahooMailNeo@web162904.mail.bf1.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: kgrittn@ymail.com, svgajendra@gmail.com
  Subject: Re: org.postgresql.util.PSQLException: ERROR: could not identify an equality operator for type xml
  In-Reply-To: <1384899064.80953.YahooMailNeo@web162904.mail.bf1.yahoo.com>
  References: <CAHjig8_uudM=qYo1e9yVuG+FZpFD4NRLRdBJgOOMEGV+cx+sDA@mail.gmail.com> <1384899064.80953.YahooMailNeo@web162904.mail.bf1.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox