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

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)
Дата
Msg-id CAH2-WznMTnNcOuwnO9jEXdTH9XtVdfDbzzCt3haiNg6fjHr-pg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Thu, Aug 24, 2023 at 6:18 PM Michael Paquier <michael@paquier.xyz> wrote:
> Still that looks entirely different to me.  Here we have a problem
> where the number of free blocks stored may cause an overflow in the
> internal routine retrieving a free block, but your other thread
> is about long being not enough on Windows.

I must have seen logtape.c, windows, and long together on this thread,
and incorrectly surmised that it was exactly the same issue as before.
I now see that the only sense in which Windows is relevant is that
Windows happens to not have the same inconsistency. Windows is
consistently wrong.

So, yeah, I guess it's a different issue. Practically speaking it
should be treated as a separate issue, in any case. Since, as you
pointed out, there is no reason to not just fix this while
backpatching.

--
Peter Geoghegan



В списке pgsql-hackers по дате отправления:

Предыдущее
От: David Rowley
Дата:
Сообщение: Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: Avoid a possible overflow (src/backend/utils/sort/logtape.c)