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 1iClw7-0005ku-Ko for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2019 14:37:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iClw6-0005D0-Ch for pgsql-general@arkaria.postgresql.org; Tue, 24 Sep 2019 14:37:02 +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 1iClw4-0005Ak-AL for pgsql-general@lists.postgresql.org; Tue, 24 Sep 2019 14:37:02 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iClw1-0006eB-5r for pgsql-general@postgresql.org; Tue, 24 Sep 2019 14:36:59 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id DC2B9529; Tue, 24 Sep 2019 10:36:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 24 Sep 2019 10:36:55 -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 anMRT0qNblO+Nmk2HMlbZm+YDAWlMCNzy68M5aaWaA=; b=eVvw4L8NQffwxmgwf lOopq8cXXFJi1uVDAmMJae47+TChmbsPXa8AZxI4ROIjLlH8jWnccw9u5MEw+elS EsqQdr9DFJTHY7+hCrH6ImbEfDWPr/cxxoACt1VSWVZsAyWzgJ4Ds7aAFqc2tITH FQPriL+WwXLu7bj3XyPhbvHTdUmG45lnEm2mWZqJ7T2+CD0/DxESwzw2OLVRM7Yd EOs17CgmixBDe9VdjK8u4KdWbxAHX2QZh4YSJXbIp7LzK77fs3VpTYnakM672NPg VA9w8X57T/jupAxrYL+Qm+9Qe65r9+o7inUw1YIeYF5LgTwGwKLT5MUuYFFeFyyR 17mMA== 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=0anMRT0qNblO+Nmk2HMlbZm+YDAWlMCNzy68M5aaW aA=; b=JT0HWj3FEYjuQxorlb+FFB+Gb7AFduDGnn7HUuiBDH6yIkleIl/UUokx7 PgC2LYBaxjwqaFoXRNYCtzMoP8zuJAanmhch+In69InYOTEdKwTiDBzkuW6nAA1b buMIHUOeRYrzR50bJ/Gr0e3dXBSuwXZG7G7j+ztTVDH+HgERlc7ykbaVCM04Heot zzUkIwU+wH81wuVM4esi32SeqeZpycQ7jGwhDgNX9fmIlxL+5vE7HuNMl/84XLf3 iPrf9dyV65joA2JGbRGwWVcdhfrneq4N0hsT3+FFKujoq0zBSIg+KGv3dNSeJEmu uO0C2gwSohaJhD6vZ7iK5522qsplA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrfedtgdejiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucffohhmrghinhepphhoshhtghhrvghsqh hlqdgrrhgthhhivhgvrdhorhhgnecukfhppedujeegrddvuddrjeekrdduieeknecurfgr rhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrd gtohhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Received: from [192.168.1.3] (174-21-78-168.tukw.qwest.net [174.21.78.168]) by mail.messagingengine.com (Postfix) with ESMTPA id A743D80059; Tue, 24 Sep 2019 10:36:53 -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> From: Adrian Klaver Message-ID: <4d4983d5-89a5-5e15-8b4f-a7d2184f0283@aklaver.com> Date: Tue, 24 Sep 2019 07:36:52 -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: <1569334695687-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/24/19 7:18 AM, PegoraroF10 wrote: > Nope, seems I didn“t create anything. > > SELECT * FROM pg_operator WHERE oid = '+(numeric, bigint)'::regoperator; > ERROR: operator does not exist: +(numeric, bigint) > > Ok, I can cast, it works. But why works without casting for you and not for > me ? Per Tom's suggestion try: 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; > > > > -- > Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html > > > -- Adrian Klaver adrian.klaver@aklaver.com