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 1iD7VU-0007j6-MI for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 13:39:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iD7VT-0004vA-Dg for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 13:38:59 +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 1iD7VT-0004v1-1f for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 13:38:59 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1iD7VL-0001x0-Hv for pgsql-general@postgresql.org; Wed, 25 Sep 2019 13:38:57 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id 65908176EC644 for ; Wed, 25 Sep 2019 06:38:50 -0700 (MST) Date: Wed, 25 Sep 2019 06:38:50 -0700 (MST) From: PegoraroF10 To: pgsql-general@postgresql.org Message-ID: <1569418730413-0.post@n3.nabble.com> In-Reply-To: <4d4983d5-89a5-5e15-8b4f-a7d2184f0283@aklaver.com> References: <1569332101700-0.post@n3.nabble.com> <1569333109982-0.post@n3.nabble.com> <1569334695687-0.post@n3.nabble.com> <4d4983d5-89a5-5e15-8b4f-a7d2184f0283@aklaver.com> Subject: Re: Operator is not unique MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_511960_26284326.1569418730413" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_511960_26284326.1569418730413 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Doing a inner join with pg_proc I=C2=B4ll get this result. So, none of this= casts I=C2=B4ve created. Column prorettype is different, this is the problem ?sel= ect format_type(castsource, NULL), format_type(casttarget, NULL),castfunc, castcontext, castmethod, pr.* from pg_cast inner join pg_proc pr on castfun= c =3D pr.oid where (castsource =3D 'numeric'::regtype or castsource =3D 'bigint'::regtype) and format_type(casttarget, NULL) in ('numeric','bigint'= ) order by castsource; format_type=09format_type=09castfunc=09castcontext=09castmethod=09proname= =09pronamespace proowner=09prolang=09procost=09prorows=09provariadic=09protransform=09proki= nd=09prosecdef proleakproof=09proisstrict=09proretset=09provolatile=09proparallel=09pronar= gs pronargdefaults=09prorettype=09proargtypes=09proallargtypes=09proargmodes proargnames=09proargdefaults=09protrftypes=09prosrc=09probin=09proconfig=09= proacl bigint=09numeric=091781=09i=09f=09numeric=0911=0910=0912=091=090=090=09-=09= f=09false=09false=09true=09false=09i s=091=090=091700=0920=09NULL=09NULL=09NULL=09NULL=09NULL=09int8_numeric=09N= ULL=09NULL=09NULL numeric=09bigint=091779=09a=09f=09int8=0911=0910=0912=091=090=090=09-=09f= =09false=09false=09true=09false=09i=09s=091 0=0920=091700=09NULL=09NULL=09NULL=09NULL=09NULL=09numeric_int8=09NULL=09NU= LL=09NULL numeric=09numeric=091703=09i=09f=09numeric=0911=0910=0912=091=090=090=09num= eric_transform=09f=09false false=09true=09false=09i=09s=092=090=091700=091700 23=09NULL=09NULL=09NULL= =09NULL=09NULL=09numeric=09NULL NULL=09NULL -- Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.h= tml ------=_Part_511960_26284326.1569418730413 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: quoted-printable Doing a inner join with pg_proc I=C2=B4ll get this result. So, none of this= casts I=C2=B4ve created.=20 Column prorettype is different, this is the problem ? select format_type(castsource, NULL), format_type(casttarget, NULL), castfunc, castcontext, castmethod, pr.* from pg_cast inner join pg_proc pr = on castfunc =3D pr.oid where (castsource =3D 'numeric'::regtype or castsour= ce =3D 'bigint'::regtype) and format_type(casttarget, NULL) in ('numeric','= bigint') order by castsource; protransformproisstrict-i<= td>NULLNULLnumeric_transform= numeric
format_typeformat_typecastfunccastcontex= tcastmethodpronamepronamespaceproowner<= /th>prolangprocostprorowsprovariadicprokindprosecdefproleakproofproretsetprovolatileproparallelpronargspronargdefaultsprorettypeproargtype= sproallargtypesproargmodesproargnamespr= oargdefaultsprotrftypesprosrcprobinproc= onfigproacl
bigintnumeric1781ifnum= eric111012100ffalsefalsetruefalses10170020NULLNULLNULLNULLint8_numericNULLNULL
numericbigint1779afint= 8111012100-<= /td>ffalsefalsetruefalsei<= /td>s10201700NULL= NULLNULLNULLNULLnumeric_int8NU= LLNULLNULL
numericnumeric1703ifnu= meric111012100ffalsefalsetruefalseis2017001700= 23NULLNULLNULLNULLNULLNULLNULLNULL
=09 =09 =09

Sent from the PostgreSQL - general mailing list archive at Nabble.= com.
------=_Part_511960_26284326.1569418730413--