pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Subject: Operator is not unique
Date: Tue, 24 Sep 2019 06:35:01 -0700 (MST)
Message-ID: <1569332101700-0.post@n3.nabble.com> (raw)

If I do ...
select 1::NUMERIC + 1::BIGINT;

I get ...
[42725] ERROR: operator is not unique: numeric + bigint Hint: Could not
choose a best candidate operator. You might need to add explicit type casts.

This error means I have more than one way to calculate that formula ? 
Did I create that operator erroneously ?
If so, how can I see what I did and how to fix it ?

I tried but didn“t find any answer.
select * from pg_operator 
join LATERAL ( select typname::text from pg_type where pg_type.oid = oprleft
) l(oprleft_name) on TRUE 
join LATERAL ( select typname::text from pg_type where pg_type.oid =
oprright ) r(oprright_name) on TRUE 
join LATERAL ( select nspname from pg_namespace where pg_namespace.oid =
oprnamespace ) n(namespace) on TRUE



--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html





view thread (21+ messages)  latest in thread

Message-ID: <1569332101700-0.post@n3.nabble.com>
Permalink:  ../1569332101700-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1569332101700-0.post@n3.nabble.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: marcos@f10.com.br
  Subject: Re: Operator is not unique
  In-Reply-To: <1569332101700-0.post@n3.nabble.com>
  References: <1569332101700-0.post@n3.nabble.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