Unique operator error w/ concatenation

From: Wells Oliver <woliver(at)padres(dot)com>
To: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Unique operator error w/ concatenation
Date: 2011-07-28 20:19:24
Message-ID: 7E1773C5-185E-48FB-B6DC-FED4DD19D317@padres.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2011-07-28 20:37:10 Re: Unique operator error w/ concatenation
Previous Message Kevin Grittner 2011-07-27 20:37:46 Re: Adding line to pg_hba.conf for a specific group makes superuser authentication fail in 9.0?