Re: More tests with USING INDEX replident and dropped indexes

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: More tests with USING INDEX replident and dropped indexes
Дата
Msg-id 20200603061347.GJ89559@paquier.xyz
обсуждение исходный текст
Ответ на Re: More tests with USING INDEX replident and dropped indexes  (Masahiko Sawada <masahiko.sawada@2ndquadrant.com>)
Ответы Re: More tests with USING INDEX replident and dropped indexes  (Euler Taveira <euler.taveira@2ndquadrant.com>)
Список pgsql-hackers
On Tue, Jun 02, 2020 at 04:46:55PM +0900, Masahiko Sawada wrote:
> How about avoiding such an inconsistent situation? In that case,
> replica identity works as NOTHING, but pg_class.relreplident is still
> ‘i’, confusing users. It seems to me that dropping an index specified
> by REPLICA IDENTITY USING INDEX is not a valid operation.

This looks first like complicating RemoveRelations() or the internal
object removal APIs with a dedicated lookup at this index's pg_index
tuple, but you could just put that in index_drop when REINDEX
CONCURRENTLY is not used.  Still, I am not sure if it is worth
complicating those code paths.  It would be better to get more
opinions about that first.
--
Michael

Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: elog(DEBUG2 in SpinLocked section.
Следующее
От: Masahiko Sawada
Дата:
Сообщение: Re: Internal key management system