Re: IS JSON predicate support for domain base type as JSON/JSONB/BYTEA/TEXT

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jian he <jian(dot)universality(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: IS JSON predicate support for domain base type as JSON/JSONB/BYTEA/TEXT
Date: 2025-11-18 17:01:19
Message-ID: 1118236.1763485279@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

jian he <jian(dot)universality(at)gmail(dot)com> 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bertrand Drouvot 2025-11-18 17:14:02 Re: Consistently use the XLogRecPtrIsInvalid() macro
Previous Message Tom Lane 2025-11-18 16:51:44 Re: Performance issues with parallelism and LIMIT