Re: [DOC] Document concurrent index builds waiting on each other

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [DOC] Document concurrent index builds waiting on each other
Дата
Msg-id 20200805021109.GA9079@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: [DOC] Document concurrent index builds waiting on each other  (Andres Freund <andres@anarazel.de>)
Ответы Re: [DOC] Document concurrent index builds waiting on each other  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-hackers
On 2020-Mar-25, Andres Freund wrote:

> What I was thinking of was a new flag, with a distinct value from
> PROC_IN_VACUUM. It'd currently just be specified in the
> GetCurrentVirtualXIDs() calls in WaitForOlderSnapshots(). That'd avoid
> needing to wait for other CICs on different relations. Since CIC is not
> permitted on system tables, and CIC doesn't do DML on normal tables, it
> seems fairly obviously correct to exclude other CICs.

Hmm, that does work, and seems a pretty small patch -- attached.  Of
course, some more commentary is necessary, but the theory of operation
is as Andres says.  (It does not solve the vacuuming problem I was
describing in the other thread, only the spurious waiting that James is
complaining about in this thread.)

I'm going to try and poke holes on this now ... (Expression indexes with
falsely immutable functions?)

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Вложения

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

Предыдущее
От: James Coleman
Дата:
Сообщение: Re: pg13dev: explain partial, parallel hashagg, and memory use
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: pg13dev: explain partial, parallel hashagg, and memory use