Re: [PATCH] Fix plpgsql's R/W optimization for simple expressions run via SPI

From: Aleksander Alekseev <aleksander(at)tigerdata(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Cc: Muzzammil Sarwar <muzzammil(at)umaish(dot)com>
Subject: Re: [PATCH] Fix plpgsql's R/W optimization for simple expressions run via SPI
Date: 2026-11-26 06:27:18
Message-ID: CAJ7c6TOCmqPG_Vcdjo+MiiYKH5d56Bdm+EpriP7gReZiBneXHg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Muzzammil,

Thanks for the patch.

> The "transfer" method is new in 18, so I think the fix should be
> back-patched to 18.

I can confirm the bug: with the new tests kept but pl_exec.c reverted,
the test fails with the assertion quoted in your message. The patch
looks correct and complete to me, and I agree that 18 is the right
back-patch target. Marking the CF entry as RfC.

--
Best regards,
Aleksander Alekseev

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Rui Zhao 2026-11-26 06:45:42 Re: Improve cube GiST page splits
Previous Message Ayush Tiwari 2026-11-26 06:21:23 [PATCH] Share WAL summary filtering logic