Re: reindex creates predicate lock on index root

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: reindex creates predicate lock on index root
Дата
Msg-id 4DEEA822020000250003E2C9@gw.wicourts.gov
обсуждение исходный текст
Ответ на reindex creates predicate lock on index root  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: reindex creates predicate lock on index root  (Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>)
Список pgsql-hackers
Dan Ports  wrote:
> On Tue, Jun 07, 2011 at 07:45:43PM -0500, Kevin Grittner wrote:
>> During testing of the SSI DDL changes I noticed that a REINDEX
>> INDEX created a predicate lock on page 0 of the index.
> 
> Really? That surprises me, and I couldn't reproduce it just now.
You're right; that one was a false alarm.  While REINDEX was reading
the heap to build the index it got an SIREAD lock on a *heap* page.
While that could arguably be avoided, even though the heap is being
read in a serializable transaction, I'm not inclined to get really
excited about it.  If someone wants to dodge it, they can always run
the REINDEX in READ COMMITTED or REPEATABLE READ mode.  Maybe 9.2
material if there's nothing to do that matters more than that.
"Move along; there's nothing to see here, folks...."
-Kevin


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

Предыдущее
От: Dan Ports
Дата:
Сообщение: Re: reindex creates predicate lock on index root
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: reducing the overhead of frequent table locks - now, with WIP patch