pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wells Oliver <woliver@padres.com>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Subject: Unique operator error w/ concatenation
Date: Thu, 28 Jul 2011 20:19:24 +0000
Message-ID: <7E1773C5-185E-48FB-B6DC-FED4DD19D317@padres.com> (raw)

Folks, experiencing an odd issue. The following on an 8.4 server: select 'foo'::text || 123

Blows up, saying:

ERROR:  operator is not unique: text || integer
LINE 1: select 'fo'::text || 123;
                          ^
HINT:  Could not choose a best candidate operator. You might need to add explicit type casts.

But on another postgres 8.4 server, it properly returns a concatenated string.

Any tips on how/where I can track down why/where there might be duplicate operators?

--
Wells Oliver
Architect, Baseball Systems
619-795-5359
San Diego Padres | 100 Park Boulevard | San Diego CA 92101




view thread (2+ messages)  latest in thread

Message-ID: <7E1773C5-185E-48FB-B6DC-FED4DD19D317@padres.com>
Permalink:  ../7E1773C5-185E-48FB-B6DC-FED4DD19D317@padres.com/
Also on:    postgresql.org/message-id/7E1773C5-185E-48FB-B6DC-FED4DD19D317@padres.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-admin@postgresql.org
  Cc: woliver@padres.com
  Subject: Re: Unique operator error w/ concatenation
  In-Reply-To: <7E1773C5-185E-48FB-B6DC-FED4DD19D317@padres.com>
  References: <7E1773C5-185E-48FB-B6DC-FED4DD19D317@padres.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