Re: Negative value of numGroups - Mailing list pgsql-bugs

From Andrey Lepikhov
Subject Re: Negative value of numGroups
Date
Msg-id ed1d1a2d-6061-24e5-e8eb-dbda3ec8f66c@postgrespro.ru
Whole thread Raw
In response to Negative value of numGroups  (Andrey Lepikhov <a.lepikhov@postgrespro.ru>)
Responses Re: Negative value of numGroups
List pgsql-bugs
On 13/5/2022 11:56, Andrey Lepikhov wrote:
> (long) Min(numGroups, (double) LONG_MAX);
> 
> can return negative value, if numGroups > LONG_MAX.
So, because this problem still breaks sqlancer tests I prepared a patch 
(with regression test) that fixes it.

-- 
regards,
Andrey Lepikhov
Postgres Professional
Attachment

pgsql-bugs by date:

Previous
From: Michael Paquier
Date:
Subject: Re: BUG #17481: sometime pg_stat_statements coredump
Next
From: Tom Lane
Date:
Subject: Re: Negative value of numGroups