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 1rhRE7-00BSem-HH for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Mar 2024 09:36:48 +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 1rhRE5-00FJyk-RG for pgsql-hackers@arkaria.postgresql.org; Tue, 05 Mar 2024 09:36:46 +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 1rhRE5-00FJyb-E5 for pgsql-hackers@lists.postgresql.org; Tue, 05 Mar 2024 09:36:46 +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 1rhRDw-002wcr-T3 for pgsql-hackers@lists.postgresql.org; Tue, 05 Mar 2024 09:36:44 +0000 Received: from [192.168.1.58] (node-gxd.pool-101-109.dynamic.totinternet.net [101.109.85.177]) (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 50E3CE20E8E; Tue, 5 Mar 2024 12:36:33 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mx2023; t=1709631394; bh=QFpOBT6NGybguzZrmmC8uv9coxw0LM/w54V+373bQUc=; h=Message-ID:Date:User-Agent:Subject:To:Cc:References:From: In-Reply-To:From; b=5ddmGTc8j3FQ92eHFxiyPzdKiIyjUl9H1LaGSoa5q1fhB7oy1aHV3W25nkIIfBXDm xN3ITNX3lNJIW7yLX3S/2Eb0Yu2qgxpRj4i2taA/pEooA6OrgJUPZ5vjlTXlDGauRJ ItyNxfhax3kZxInmSUOYfCWk9wuGenc7JVxibuj8wKdry0LxRNUcNWKbWNgbF8lbBR Y65bTkaXC/zZIoR6BE/ZY4g144jYbOl4aGZcB4FzWgUzbh6q54VQew927BZs74Hl9W PTt51y6dkmfl/QY0+jXZ8qMDpNjNZAFlZda03/jSRDg4Md3ECGPxcJ8l7beNzZqEpt VgcA8LqYSElyw== Message-ID: Date: Tue, 5 Mar 2024 16:36:29 +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 , PostgreSQL Hackers Cc: 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 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. -- regards, Andrei Lepikhov Postgres Professional