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.96) (envelope-from ) id 1vLP58-00FZ1P-11 for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Nov 2025 17:01:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vLP56-007b8N-2b for pgsql-hackers@arkaria.postgresql.org; Tue, 18 Nov 2025 17:01:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vLP56-007b8E-1g for pgsql-hackers@lists.postgresql.org; Tue, 18 Nov 2025 17:01:28 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vLP50-000Cvg-2i for pgsql-hackers@postgresql.org; Tue, 18 Nov 2025 17:01:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 5AIH1JM31118237; Tue, 18 Nov 2025 12:01:19 -0500 From: Tom Lane To: jian he cc: PostgreSQL-development Subject: Re: IS JSON predicate support for domain base type as JSON/JSONB/BYTEA/TEXT In-reply-to: References: Comments: In-reply-to jian he message dated "Tue, 18 Nov 2025 23:43:13 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1118235.1763485279.1@sss.pgh.pa.us> Date: Tue, 18 Nov 2025 12:01:19 -0500 Message-ID: <1118236.1763485279@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk jian he writes: > [ v1-0001-IS-JSON-predicate-work-with-domain-type.patch ] This looks like a large patch with a small patch struggling to get out of it. Why didn't you simply do - *exprtype = exprType(expr); + *exprtype = getBaseType(exprType(expr)); in transformJsonParseArg? regards, tom lane