Re: Async commands (like drop index)
От
Neil Conway
Тема
Re: Async commands (like drop index)
Дата
Msg-id
1179509996.6059.8.camel@goldbach
Ответ на
Re: Async commands (like drop index) (Alvaro Herrera)
Список
Дерево обсуждения
Async commands (like drop index) "Joshua D. Drake" <jd@commandprompt.com>
Re: Async commands (like drop index) "Jim C. Nasby" <decibel@decibel.org>
Re: Async commands (like drop index) Neil Conway <neilc@samurai.com>
Re: Async commands (like drop index) Alvaro Herrera <alvherre@commandprompt.com>
Re: Async commands (like drop index) Neil Conway <neilc@samurai.com>
Re: Async commands (like drop index) "Jim C. Nasby" <decibel@decibel.org>
Re: Async commands (like drop index) "Joshua D. Drake" <jd@commandprompt.com>
Re: Async commands (like drop index) Tom Lane <tgl@sss.pgh.pa.us>
Re: Async commands (like drop index) "Joshua D. Drake" <jd@commandprompt.com>
On Fri, 2007-18-05 at 13:29 -0400, Alvaro Herrera wrote: > I think what Joshua really wants is an equivalent of this That's not what his original email asked for, at any rate. > start: > BEGIN; > LOCK TABLE foo IN ACCESS EXCLUSIVE MODE NOWAIT; > -- if fail, rollback and go to start > DROP INDEX foo_idx; > COMMIT; > > The idea is that the lock is only acquired if immediately available, > thus not blocking other queries which would otherwise be blocked behind > the DROP INDEX. ISTM this can easily be implemented with statement_timeout (which is more general to boot). -Neil
В списке pgsql-hackers по дате отправления