From: | Andrew Hall <andrewah(at)hotmail(dot)com> |
---|---|
To: | PostgreSQL Mailing List <pgsql-sql(at)postgresql(dot)org> |
Subject: | Foreign key - Indexing & Deadlocking. |
Date: | 2009-12-29 22:59:06 |
Message-ID: | COL122-W493DEB26AA345A7DCE0058CD7A0@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Hi,
I'm porting some Oracle software to PostgreSQL, & have a question about best practices with foreign keys.
In the Oracle environment, you're basically obliged to index all foreign keys (more specifically foreign key columns should appear on the leading edge of an index) due to the way that it manages locks.
Failure to index foreign keys in this way in Oracle often causes deadlock situations.
Although I could no find a mention of anything similar in the postgreSQL documentation, I just wanted to check whether or not the same was true of PostgreSQL to be on the safe side.
Thanks,
Andrew.
_________________________________________________________________
Use Hotmail to send and receive mail from your different email accounts
http://clk.atdmt.com/UKM/go/186394592/direct/01/
From | Date | Subject | |
---|---|---|---|
Next Message | Bryce Nesbitt | 2009-12-29 23:44:08 | Re: Using || operator to fold multiple columns into one |
Previous Message | Mina Waheeb | 2009-12-28 16:57:18 | Invitation to connect on LinkedIn |