Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c) - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)
Date
Msg-id ZOfsGzuS/mLCr1jM@paquier.xyz
Whole thread Raw
In response to Avoid a possible overflow (src/backend/utils/sort/logtape.c)  (Ranier Vilela <ranier.vf@gmail.com>)
Responses Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)
List pgsql-hackers
On Thu, Aug 24, 2023 at 02:46:42PM -0300, Ranier Vilela wrote:
> With Windows both *long* and *int* are 4 bytes.
> But with Linux *long* is 8 bytes and *int* are 4 bytes.

And I recall that WIN32 is the only place where we treat long as 4
bytes.

> patch attached.

Yeah, it looks like you're right here.  Will do something about that.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: initdb caching during tests
Next
From: Vik Fearing
Date:
Subject: Re: ALTER COLUMN ... SET EXPRESSION to alter stored generated column's expression