Re: REINDEX blocks virtually any queries but some prepared queries.

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: REINDEX blocks virtually any queries but some prepared queries.
Дата
Msg-id CAH2-Wz=6Fp=Z-GyCBcj4MJWPpYHQvNt+bh55FKQWdA=gGeW4eg@mail.gmail.com
обсуждение исходный текст
Ответ на REINDEX blocks virtually any queries but some prepared queries.  (Frédéric Yhuel <frederic.yhuel@dalibo.com>)
Ответы Re: REINDEX blocks virtually any queries but some prepared queries.  (Frédéric Yhuel <frederic.yhuel@dalibo.com>)
Список pgsql-hackers
On Wed, Apr 6, 2022 at 7:49 AM Frédéric Yhuel <frederic.yhuel@dalibo.com> wrote:
>  From the documentation
> (https://www.postgresql.org/docs/current/sql-reindex.html#id-1.9.3.162.7),
> it sounds like REINDEX won't block read queries that don't need the
> index. But it seems like the planner wants to take an ACCESS SHARE lock
> on every indexes, regardless of the query, and so REINDEX actually
> blocks any queries but some prepared queries whose plan have been cached.
>
> I wonder if it is a bug, or if the documentation should be updated. What
> do you think?

I've always thought that the docs for REINDEX, while technically
accurate, are very misleading in practice.

--
Peter Geoghegan



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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: SQL/JSON: JSON_TABLE
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Mingw task for Cirrus CI