Re: Slow DROP INDEX - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Slow DROP INDEX
Date
Msg-id 26857.1076954612@sss.pgh.pa.us
Whole thread Raw
In response to Slow DROP INDEX  (Rod Taylor <pg@rbt.ca>)
Responses Re: Slow DROP INDEX  (Rod Taylor <pg@rbt.ca>)
List pgsql-hackers
Rod Taylor <pg@rbt.ca> writes:
> The real question is why does DROP INDEX take more than a couple of
> seconds to complete? It is not held up by locked.

AFAICS it shouldn't take any time to complete.  I think you're mistaken
and it is blocking on a lock (it will want exclusive lock on the table).
Everyone else will then queue up behind it.

IIRC there is not any easy way to check this in 7.2 unfortunately :-(
but you could try looking for idle-in-transaction backends.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Proposed Query Planner TODO items
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] dollar quoting