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 1iDDJD-0003gW-Ui for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 19:50:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iDDJC-0006xp-MU for pgsql-general@arkaria.postgresql.org; Wed, 25 Sep 2019 19:50:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDDJB-0006xh-Lr for pgsql-general@lists.postgresql.org; Wed, 25 Sep 2019 19:50:42 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iDDJ7-00085z-RQ for pgsql-general@postgresql.org; Wed, 25 Sep 2019 19:50:41 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 3D8AE22629; Wed, 25 Sep 2019 15:50:36 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 25 Sep 2019 15:50:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=0 ELTo334yrYxjaNGUwWwJ5MGqDU/rHa8rgUk1huJV2Y=; b=wnbTLEyg0B4VuR3U0 /8ZmID6pVyFLl3eANh4l9TCcy+UBHgOpC8DOB4POtXGp4Cbyq9tjwzDSzCC8ZCOr 2cZCX07pn5XvjYh12ZBNsKlsj3BYWyyleHdvVoWJAmEK37QqqYEvRO+PEc3ojgh7 lDpBoMdZPA+q0igUTRJ87H3v5NCO6DUeBhdrJ6HkSr3if3yRU4PHt/Lhp4oy3o4x 06HX2wt8wOkhTThi1DGVGeTuQO9b6HSJ0JGuWvl53ch3zMVaTKV4mZKE5yn7yPh1 TLZsJuU9WqKW9uDMcd4+JnjxBN4iH0hMOVvytHzFPrsluwtjQfwgbqCdhd4HCW8s UAHdg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=0ELTo334yrYxjaNGUwWwJ5MGqDU/rHa8rgUk1huJV 2Y=; b=HyJpqG1H+bUZfDNKAz8QVWK0OFvPi8SggPMJfIH10r4DXlIsIt9CBpr7k Dqq8dl9OXj1e1dh0qw0w4qQuRHfNvIMpRTsLNnq56c0vJYBJmB6XKrRu2BBErDFh oGLlsbOrH/7I24ul5d60EWDoYt/n/o+xd5bRvyZowU/pmhL+rHq77yO9d0UsTRuQ 3lO49mOEU/SndD+pgiq5e/lGqfSKeUOHfm8iY0ZrZUoFGppguPy0trmx3qHhDACT r0bW9mKKxg219laNHGpEZyN3LWm2HywHT+ELj6/rgi8IMMb2vHYmHhM8yVTSG9J+ LhktLbv82IBjP5omSvqvOQekKrQaA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrfedvgddugedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtke ertddtfeejnecuhfhrohhmpeetughrihgrnhcumfhlrghvvghruceorggurhhirghnrdhk lhgrvhgvrhesrghklhgrvhgvrhdrtghomheqnecuffhomhgrihhnpehnrggssghlvgdrtg homhdpphhoshhtghhrvghsqhhlqdgrrhgthhhivhgvrdhorhhgnecukfhppedujeegrddv uddrudehgedrvddvgeenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklh grvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.3] (174-21-154-224.tukw.qwest.net [174.21.154.224]) by mail.messagingengine.com (Postfix) with ESMTPA id 443FF80061; Wed, 25 Sep 2019 15:50:34 -0400 (EDT) Subject: Re: Operator is not unique To: PegoraroF10 , pgsql-general@postgresql.org 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> <1569418730413-0.post@n3.nabble.com> From: Adrian Klaver Message-ID: <0b8eb296-178d-0e95-5fc7-0502d79ceaab@aklaver.com> Date: Wed, 25 Sep 2019 12:50:33 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <1569418730413-0.post@n3.nabble.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/25/19 6:38 AM, PegoraroF10 wrote: > Doing a inner join with pg_proc I´ll get this result. So, none of this > casts I´ve created. 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 = pr.oid where (castsource = 'numeric'::regtype or > castsource = 'bigint'::regtype) and format_type(casttarget, NULL) in > ('numeric','bigint') order by castsource; Please run the query provided: select format_type(castsource, NULL), format_type(casttarget, NULL), castfunc, castcontext, castmethod from pg_cast where castsource = 'numeric'::regtype or castsource = 'bigint'::regtype order by castsource; > format_type format_type castfunc castcontext castmethod proname > pronamespace proowner prolang procost prorows provariadic protransform > prokind prosecdef proleakproof proisstrict proretset provolatile > proparallel pronargs pronargdefaults prorettype proargtypes > proallargtypes proargmodes proargnames proargdefaults protrftypes > prosrc probin proconfig proacl > bigint numeric 1781 i f numeric 11 10 12 1 0 0 - f false false true > false i s 1 0 1700 20 NULL NULL NULL NULL NULL int8_numeric NULL NULL NULL > numeric bigint 1779 a f int8 11 10 12 1 0 0 - f false false > true false i s 1 0 20 1700 NULL NULL NULL NULL NULL numeric_int8 NULL > NULL NULL > numeric numeric 1703 i f numeric 11 10 12 1 0 0 numeric_transform f > false false true false i s 2 0 1700 1700 23 NULL NULL NULL NULL NULL > numeric NULL NULL NULL > > > ------------------------------------------------------------------------ > Sent from the PostgreSQL - general mailing list archive > at > Nabble.com. -- Adrian Klaver adrian.klaver@aklaver.com