Re: Good name for new lock type for VACUUM?

Поиск
Список
Период
Сортировка
От Hiroshi Inoue
Тема Re: Good name for new lock type for VACUUM?
Дата
Msg-id 3B369710.894DA7A2@tpf.co.jp
обсуждение исходный текст
Ответ на Re: Good name for new lock type for VACUUM?  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> 
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> >> Still, it's an interesting alternative.  Comments anyone?
> 
> > SelfExclusiveLock is clear and can't be confused with other lock types.
> 
> It could possibly be made a little less dangerous if "SelfExclusiveLock"
> were defined to conflict with itself and AccessExclusiveLock (and
> nothing else).  That would at least mean that holding SelfExclusiveLock
> would guarantee the table not go away under you; so there might be
> scenarios where holding just that lock would make sense.
> 
> Still, I'm not sure that this lock type is as flexible as it seems at
> first glance. 

I don't think "SelfExclusiveLock" is an excellent lock either.
However it seems to point out the reason why we couldn't
place(name) "VacuumLock" properly in our locking system.

regards,
Hiroshi Inoue


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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: stuck spin lock with many concurrent users
Следующее
От: Bruce Toback
Дата:
Сообщение: Re: Instrumenting and Logging in JDBC