Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition

Поиск
Список
Период
Сортировка
От Richard Guo
Тема Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition
Дата
Msg-id CAMbWs481UoOxHyZGih-VhhC5bOQCpVd_KLXPtBAMRg7gD50+2w@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition  (tender wang <tndrwang@gmail.com>)
Ответы Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition
Re: BUG #18259: Assertion in ExtendBufferedRelLocal() fails after no-space-left condition
Список pgsql-bugs

On Wed, Dec 27, 2023 at 5:08 PM tender wang <tndrwang@gmail.com> wrote:
Alexander Lakhin <exclusion@gmail.com> 于2023年12月27日周三 15:00写道:
I wonder, if "buf_state &= BM_VALID" is a typo here, maybe it supposed to be
"buf_state &= ~BM_VALID" as in ExtendBufferedRelShared()...
 
Yeah, that's true.  I analyze this issue again, and I think the root cause is the " buf_state &= BM_VALID" .

Nice catch.  I believe the intention is to clear the BM_VALID bit.

By the way, I wonder if it would be worthwhile to define new macros for
bit operations such as set_bit, clear_bit, test_bit, and so on, so that
we can avoid such typos in the future.

Thanks
Richard

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

Предыдущее
От: Andrei Lepikhov
Дата:
Сообщение: Re: BUG #18260: Unexpected error: "negative bitmapset member not allowed" triggered by multiple JOIN
Следующее
От: Richard Guo
Дата:
Сообщение: Re: BUG #18261: Inconsistent results of SELECT affected by joined subqueries