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

From Albe Laurenz
Subject Re: Disabling an index temporarily
Date
Msg-id A737B7A37273E048B164557ADEF4A58B53773C2D@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to Re: Disabling an index temporarily  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: Disabling an index temporarily  (Julien Rouhaud <julien.rouhaud@dalibo.com>)
Re: Disabling an index temporarily  (Tatsuo Ishii <ishii@postgresql.org>)
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.

Yours,
Laurenz Albe


pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Using quicksort for every external sort run
Next
From: Craig Ringer
Date:
Subject: Re: Logical replication and multimaster