Re: Perfomance decreasing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Perfomance decreasing
Дата
Msg-id 28198.998019751@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Perfomance decreasing  (Hiroshi Inoue <Inoue@tpf.co.jp>)
Список pgsql-general
Hiroshi Inoue <Inoue@tpf.co.jp> writes:
> One backend would be blocked by another one because reindex_relation
> calls reindex_index and reindex_index grabs an ExclusiveLock on the
> relation.
> Am I missing anything ?

It'd be okay if you *held* the lock throughout.  Grabbing and releasing
it isn't safe IMHO.  Just for one problem, what if someone else tries
to drop the relation in one of those intervals where you're not holding
a lock?

            regards, tom lane

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: USING HASH considered harmful?
Следующее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Perfomance decreasing