Re: Why is lock not released?

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Why is lock not released?
Дата
Msg-id 20050820094747.GA20131@surnet.cl
обсуждение исходный текст
Ответ на Re: Why is lock not released?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Why is lock not released?
Список pgsql-hackers
On Sat, Aug 20, 2005 at 12:23:38AM -0400, Tom Lane wrote:
> Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> >> The "drop" way probably allows slightly more concurrency, but given that
> >> people should seldom be taking exclusionary locks on system catalogs,
> >> I'm not sure this is really an issue.
> 
> > Hmm.  The problem at hand (REASSIGN OWNED BY) may involve changing
> > ownership of several objects in a single transaction.  The order is
> > unspecified, because it's following a scan of the pg_shdepend entries --
> > so it'd be easy for one REASSIGN OWNED BY transaction to deadlock with
> > another one, if they happen to follow different orderings.
> 
> Uh, how is it going to deadlock on a lock that is not exclusive?

Oh, so is RowExclusiveLock not exclusive?  (pokes)  yeah, I guess it
isn't ...

-- 
Alvaro Herrera (<alvherre[a]alvh.no-ip.org>)
"La grandeza es una experiencia transitoria.  Nunca es consistente.
Depende en gran parte de la imaginación humana creadora de mitos"
(Irulan)


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

Предыдущее
От: Gavin Sherry
Дата:
Сообщение: Re: VACUUM/t_ctid bug (was Re: GiST concurrency commited)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: VACUUM/t_ctid bug (was Re: GiST concurrency commited)