Re: PANIC: wrong buffer passed to visibilitymap_clear

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: PANIC: wrong buffer passed to visibilitymap_clear
Дата
Msg-id 20210409233203.3khg3s5iw34g4xrc@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: PANIC: wrong buffer passed to visibilitymap_clear  (Andres Freund <andres@anarazel.de>)
Ответы Re: PANIC: wrong buffer passed to visibilitymap_clear
Список pgsql-hackers
On 2021-04-09 16:27:39 -0700, Andres Freund wrote:
> Just looking at the code in heap_update: I'm a bit confused about
> RelationGetBufferForTuple()'s vmbuffer and vmbuffer_other
> arguments. It looks like it's not at all clear which of the two
> arguments will have the vmbuffer for which of the pages?
> 
>         if (otherBuffer == InvalidBuffer || targetBlock <= otherBlock)
>             GetVisibilityMapPins(relation, buffer, otherBuffer,
>                                  targetBlock, otherBlock, vmbuffer,
>                                  vmbuffer_other);
>         else
>             GetVisibilityMapPins(relation, otherBuffer, buffer,
>                                  otherBlock, targetBlock, vmbuffer_other,
>                                  vmbuffer);

Oh, I missed that the arguments to GetVisibilityMapPins are
appropriately swapped too.

Greetings,

Andres Freund



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: PANIC: wrong buffer passed to visibilitymap_clear
Следующее
От: Andres Freund
Дата:
Сообщение: Re: pgsql: autovacuum: handle analyze for partitioned tables