Re: Disabling an index temporarily - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: Disabling an index temporarily
Date
Msg-id 20151212.201312.617523493525438049.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: Disabling an index temporarily  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List 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 by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Disabling an index temporarily
Next
From: Michael Paquier
Date:
Subject: Re: Re: In-core regression tests for replication, cascading, archiving, PITR, etc.