Re: JIT: The nullness of casetest.value can be determined at the JIT compile time. - Mailing list pgsql-hackers

From Tom Lane
Subject Re: JIT: The nullness of casetest.value can be determined at the JIT compile time.
Date
Msg-id 3346421.1738261652@sss.pgh.pa.us
Whole thread Raw
In response to Re: JIT: The nullness of casetest.value can be determined at the JIT compile time.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
I wrote:
> Agreed.  I spent some time trying to do it better, with results
> shown at [1].  If we adopt that idea, then the executor's support
> for CaseTestExpr will go away, so there's little point in pursuing
> that half of the patch given here.  However, I concluded that there's
> insufficient reason to redesign CoerceToDomainValue, so we could
> still push forward with that half of this patch.

On further consideration, we might as well do this whole patch.
The patch I'm proposing over there is large and might well not
land in v18 (or ever), so let's get this low-hanging fruit.

I pushed Andreas's patch with some cosmetic tidying, mainly
that I felt it better not to try to combine duplicate-ish
code for the EEOP_CASE_TESTVAL and EEOP_DOMAIN_TESTVAL cases.
We're after understandability here after all, and it's still
a net code savings even with that duplication.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Sutou Kouhei
Date:
Subject: Re: Make COPY format extendable: Extract COPY TO format implementations
Next
From: Masahiko Sawada
Date:
Subject: Re: UUID v7