Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)

Peter Geoghegan <pg@bowt.ie>

From: Peter Geoghegan <pg@bowt.ie>
To: Michael Paquier <michael@paquier.xyz>
Cc: Ranier Vilela <ranier.vf@gmail.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2023-08-25T00:33:15Z
Lists: pgsql-hackers
On Thu, Aug 24, 2023 at 4:47 PM Michael Paquier <michael@paquier.xyz> wrote:
> > patch attached.
>
> Yeah, it looks like you're right here.  Will do something about that.

This is a known issue. It has been discussed before.

I am in favor of fixing the problem. I don't quite recall what it was
that made the discussion stall last time around.

-- 
Peter Geoghegan



Commits

  1. Avoid possible overflow with ltsGetFreeBlock() in logtape.c