Re: Deadlock bug

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Deadlock bug
Дата
Msg-id 4C754CB8.5000406@agliodbs.com
обсуждение исходный текст
Ответ на Re: Deadlock bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Deadlock bug  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> It strikes me that a possibly useful simplification of the idea is a
> lock type that allows HOT updates and not non-HOT ones; or more
> precisely not ones that change any indexed columns --- if the row ends
> up having to go off-page for lack of space, that need not concern us.

While an improvement over the current, that's still more restrictive
than we actually need for FKs.  FKs just need to lock the value of the
reference column(s); they don't care if *other* indexes are updated.

Thus, for an RI reference, we care about one and exactly one unique/PK
index on the referenced table.

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


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

Предыдущее
От: Stephen Frost
Дата:
Сообщение: Re: Performance Farm Release
Следующее
От: Greg Stark
Дата:
Сообщение: Re: git: uh-oh