Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCkyC-0003P9-H5 for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2019 13:35:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iCkyA-00061K-43 for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2019 13:35:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iCky9-0005zz-OB for pgsql-general@lists.postgresql.org; Tue, 24 Sep 2019 13:35:05 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iCky7-00066k-5R for pgsql-general@postgresql.org; Tue, 24 Sep 2019 13:35:04 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id C1CC117686EBD for ; Tue, 24 Sep 2019 06:35:01 -0700 (MST) Date: Tue, 24 Sep 2019 06:35:01 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1569332101700-0.post@n3.nabble.com> Subject: Operator is not unique MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 ?=20 Did I create that operator erroneously ? If so, how can I see what I did and how to fix it ? I tried but didn=C2=B4t find any answer. select * from pg_operator=20 join LATERAL ( select typname::text from pg_type where pg_type.oid =3D oprl= eft ) l(oprleft_name) on TRUE=20 join LATERAL ( select typname::text from pg_type where pg_type.oid =3D oprright ) r(oprright_name) on TRUE=20 join LATERAL ( select nspname from pg_namespace where pg_namespace.oid =3D oprnamespace ) n(namespace) on TRUE -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml