Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rhi5t-00CyEi-Dy for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2024 03:37:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rhi5r-004zmm-NL for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2024 03:37:24 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rhi5r-004zmc-AL for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2024 03:37:23 +0000 Received: from mail.postgrespro.ru ([93.174.131.139]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rhi5l-0034VM-TD for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2024 03:37:22 +0000 Received: from [172.30.8.38] (unknown [172.30.8.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: a.lepikhov@postgrespro.ru) by mail.postgrespro.ru (Postfix/587) with ESMTPSA id 3D5ECE20E87; Wed, 6 Mar 2024 06:37:14 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1709696235; bh=E1Pm8f6Pd336GGyHS7uJlyOA43FdV0y3eIryLYWVUnY=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=mmdTlWumZhp9MFGnLcrsga0Z2FelqzPuoV+S3S13FjBkSUmI6DaeAaA5+nP9ipFVt p+GUZ/hQ9pk5lzF7dULSrZVXUkV64b4fXfGqBJhOxfVXm5U31MAI2NQ/t68+Mi/yho aNnah/Gmymv+G8p4jfqcRYF+kDVHIp4fNOuDG76ZUI+jYo7nhmo7mJgjmgrxLf4hz1 82stG92Imk6q9CeJKSZ6Vzsd4WhiBUxvNucJ4PW9/brfHMnHcMEu5KPLLwumMDZ1Zd AWlKP2Hn4qRlRhDaheTOWiGY9o5gkhUKq+tBRl/MEOzqAxR5uyACdTjlI0kRmT/7tz o7hu3Mnyim1CA== Message-ID: Date: Wed, 6 Mar 2024 10:37:11 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: "type with xxxx does not exist" when doing ExecMemoize() Content-Language: en-US To: Tender Wang Cc: PostgreSQL Hackers , Richard Guo , David Rowley References: <7a6a807c-193f-4333-937b-8211b1330579@postgrespro.ru> From: Andrei Lepikhov Organization: Postgres Professional In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 6/3/2024 10:10, Tender Wang wrote: > > > Andrei Lepikhov > 于2024年3月5日周二 17:36写道: > > On 1/3/2024 14:18, Tender Wang wrote: > > During debug, I learned that numeric_add doesn't have type check > like > > rangetype, so aboved query will not report "type with xxx does > not exist". > > > > And I realize that  the test case added by Andrei Lepikhov  in v3 is > > right. So in v6 patch I add Andrei Lepikhov's test case.  Thanks > a lot. > > > > Now I think the v6 version patch seems to be complete now. > I've passed through the patch, and it looks okay. Although I am afraid > of the same problems that future changes can cause and how to detect > them, it works correctly. > > > Thanks for reviewing it, and I add it to commitfest 2024-07. I think, it is a bug. Should it be fixed (and back-patched) earlier? -- regards, Andrei Lepikhov Postgres Professional