Re: [PATCH] Don't block HOT update by BRIN index

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [PATCH] Don't block HOT update by BRIN index
Дата
Msg-id 202107122055.6bzswduhiiyo@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [PATCH] Don't block HOT update by BRIN index  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
Ответы Re: [PATCH] Don't block HOT update by BRIN index
Список pgsql-hackers
On 2021-Jul-12, Tomas Vondra wrote:

> Well, one of us is confused and it might be me ;-)

:-)

> The point is that BRIN is the only index type with amhotblocking=false,
> so it would return NULL (and thus it does not block HOT). All other
> indexes AMs have amblocking=true and so should return rd_indexattr (I
> forgot to change that in the code chunk).

But RelationGetIndexAttrBitmap is called for the table that contains the
index (and probably contains some other indexes too), not for one
specific index.  So the bitmap is about the columns involved in *all*
indexes of the table ...

-- 
Álvaro Herrera              Valdivia, Chile  —  https://www.EnterpriseDB.com/
"El destino baraja y nosotros jugamos" (A. Schopenhauer)



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

Предыдущее
От: Tomas Vondra
Дата:
Сообщение: Re: [PATCH] Don't block HOT update by BRIN index
Следующее
От: Matthias van de Meent
Дата:
Сообщение: Re: Fix comments of heap_prune_chain()