Re: PL/PgSQL, Inheritance, Locks, and Deadlocks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PL/PgSQL, Inheritance, Locks, and Deadlocks
Дата
Msg-id 28778.1107358887@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: PL/PgSQL, Inheritance, Locks, and Deadlocks  (Thomas F.O'Connell <tfo@sitening.com>)
Ответы Re: PL/PgSQL, Inheritance, Locks, and Deadlocks  (Thomas F.O'Connell <tfo@sitening.com>)
Re: PL/PgSQL, Inheritance, Locks, and Deadlocks  (Thomas F.O'Connell <tfo@sitening.com>)
Список pgsql-general
"Thomas F.O'Connell" <tfo@sitening.com> writes:
> The linking table is a pure linking table. It has a user_id and a
> group_id, each a foreign key. The user_id ties to the appropriate
> subclass user table. The group_id ties to the groups table, which is
> not part of an inheritance hierarchy. A multicolumn primary key covers
> both foreign keys in the linking table, and the secondary column of the
> key also has its own index.

Inserts/updates in a table that has a foreign key result in locks on the
referenced rows in the master table.  Could this explain your problem?

            regards, tom lane

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

Предыдущее
От: Vlad
Дата:
Сообщение: simple case syntax oddity in 8.0.0
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: query time