Partial index locks

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Partial index locks
Дата
Msg-id CAA-aLv4QTcSP5fG=G7pPFq9vcOyEUXni_s0q4jjCFFZt3_p3qA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Partial index locks  (Vik Fearing <vik.fearing@dalibo.com>)
Re: Partial index locks  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,

I've created a table with 1000 partial indexes.  Each one matches
exactly one row based on the predicate WHERE id = <value>.

However, when I perform an UPDATE of a single row in a transaction,
I've noticed that all those partial indexes show up in pg_locks with
RowExclusiveLock.

Only 2 of those indexes have a reference to the row: the primary key
and a single partial index.

Is it necessary for a partial index that doesn't include the row to be
involved in locking?

Thanks

Thom



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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Standby server won't start
Следующее
От: Vik Fearing
Дата:
Сообщение: Re: Partial index locks