Re: Disabling an index temporarily

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: Disabling an index temporarily
Дата
Msg-id 20151212.201312.617523493525438049.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: Disabling an index temporarily  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-hackers
> Tatsuo Ishii wrote:
>>> Wouldn't something like:
>>>
>>> ALTER INDEX foo SET DISABLED;
>>>
>>> See more in line with our grammar?
>>
>> But this will affect other sessions, no?
> 
> Not if it is used in a transaction that ends with a ROLLBACK,
> but then you might as well use DROP INDEX, except
> that DROP INDEX takes an access exclusive lock.

I thought about this. Problem with the transaction rollback technique
is, I would not be able to test with an application which runs
multiple transactions.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese:http://www.sraoss.co.jp



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

Предыдущее
От: Julien Rouhaud
Дата:
Сообщение: Re: Disabling an index temporarily
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Re: In-core regression tests for replication, cascading, archiving, PITR, etc.