Re: [PATCH] Remove dead code in ExecForPortionOfLeftovers() - Mailing list pgsql-hackers

From jian he
Subject Re: [PATCH] Remove dead code in ExecForPortionOfLeftovers()
Date
Msg-id CACJufxE7cpK_eY+HXVFD_DBfMpRxCUoHfZBKRYLwgKW2NB8=Rw@mail.gmail.com
Whole thread
In response to Re: [PATCH] Remove dead code in ExecForPortionOfLeftovers()  (Quan Zongliang <quanzongliang@yeah.net>)
List pgsql-hackers
On Wed, Apr 22, 2026 at 11:58 AM Quan Zongliang <quanzongliang@yeah.net> wrote:
>
>
> On 4/21/26 8:22 PM, Aleksander Alekseev wrote:
> > Hi,
> >
> > While reading 8e72d914c528 I noticed that
> > ForPortionOfState.fp_leftoverstypcache is not used for anything. I
> > suggest removing it, as attached.
> >
>
> Agree.
> It indeed did not make any reference anywhere.
>

I raised this issue at [1].
But apparently, it's actually being used for fixing a bug at [2].

[1]: https://www.postgresql.org/message-id/CACJufxHYntqy2fo9CFWDDrqKjcMK8DGRM3kse4YnXYnPYq2Hiw%40mail.gmail.com
[2]: https://www.postgresql.org/message-id/CA%2BrenyU5%3Dmihx6O8%2BERBmarZcuV1QiWB3X5bZhdptWoRM9G-Aw%40mail.gmail.com



pgsql-hackers by date:

Previous
From: Amit Langote
Date:
Subject: Re: Eliminating SPI / SQL from some RI triggers - take 3
Next
From: Nishant Sharma
Date:
Subject: Re: [BUG] CRASH: ECPGprepared_statement() and ECPGdeallocate_all() when connection is NULL