Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Thomas F.O'Connell" <tfo@xxxxxxxxxxxx> 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

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@xxxxxxxxxxxxxx)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux