Re: hio.c does visibilitymap_pin()/IO while holding buffer lock

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: hio.c does visibilitymap_pin()/IO while holding buffer lock
Дата
Msg-id 2602455.1679763437@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: hio.c does visibilitymap_pin()/IO while holding buffer lock  (Andres Freund <andres@anarazel.de>)
Ответы Re: hio.c does visibilitymap_pin()/IO while holding buffer lock  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
Andres Freund <andres@anarazel.de> writes:
> On 2023-03-25 14:34:25 +0100, Tomas Vondra wrote:
>> Can't we ensure we actually lock the vm buffer too in ReadBufferBI,
>> before calling ReadBufferExtended? Or am I confused and that's not
>> possible for some reason?

> Note that this is using P_NEW. I.e. we don't know the buffer location yet.

Maybe the relation-extension logic needs to include the ability to get
the relevant vm page?

            regards, tom lane



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

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: hio.c does visibilitymap_pin()/IO while holding buffer lock
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Progress report of CREATE INDEX for nested partitioned tables