Re: JIT: The nullness of casetest.value can be determined at the JIT compile time.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: Xing Guo <higuoxing(at)gmail(dot)com>, Andreas Karlsson <andreas(at)proxel(dot)se>, pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: JIT: The nullness of casetest.value can be determined at the JIT compile time.
Date: 2025-01-30 18:27:32
Message-ID: 3346421.1738261652@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2025-01-30 19:54:59 Re: UUID v7
Previous Message Sutou Kouhei 2025-01-30 15:42:13 Re: Make COPY format extendable: Extract COPY TO format implementations