Opclass parameters of indexes lost after REINDEX CONCURRENTLY

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Opclass parameters of indexes lost after REINDEX CONCURRENTLY
Дата
Msg-id YX0CG/QpLXcPr8HJ@paquier.xyz
обсуждение исходный текст
Ответы Re: Opclass parameters of indexes lost after REINDEX CONCURRENTLY  (Zhihong Yu <zyu@yugabyte.com>)
Список pgsql-hackers
Hi all,

While reviewing the code for opclass parameters with indexes, I have
noticed that opclass parameters are lost after a concurrent reindex.
As we use a IndexInfo to hold the information of the new index when
creating a copy of the old one, it is just a matter of making sure
that ii_OpclassOptions is filled appropriately, but that was missed by
911e702.

Attached is a patch to fix the issue.  After a concurrent reindex, we
would not finish with a corrupted index, just with one rebuilt with
default opclass parameter values.

Any objections or comments?
--
Michael

Вложения

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

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Predefined role pg_maintenance for VACUUM, ANALYZE, CHECKPOINT.
Следующее
От: Bharath Rupireddy
Дата:
Сообщение: Re: logical decoding/replication: new functions pg_ls_logicaldir and pg_ls_replslotdir