Foreign key / performance question - Mailing list pgsql-general

From Nico Callewaert
Subject Foreign key / performance question
Date
Msg-id 20060329173547.61131.qmail@web32605.mail.mud.yahoo.com
Whole thread Raw
Responses Re: Foreign key / performance question  (Vivek Khera <vivek@khera.org>)
Re: Foreign key / performance question  (Stephan Szabo <sszabo@megazone.bigpanda.com>)
Re: Foreign key / performance question  (Scott Marlowe <smarlowe@g2switchworks.com>)
List pgsql-general
Hi !,
 
Is it wise to define foreign keys for referential entegrity ?
Example : I have a customer table with 40 fields.  Out of that 40 fields, 10 fields contain information linked to other tables.   So, is defining foreign keys for these 10 fields a good idea ?  Because from what I understand, for every foreign key, there is an index defined.  So, all these indexes has to be maintained.  Is that killing performance ?  What's the best practise : defining foreign keys or not ?
 
Thanks a lot,
Nico Callewaert


New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

pgsql-general by date:

Previous
From: Steve Atkins
Date:
Subject: Re: Implementation Suggestions
Next
From: "Reimer"
Date:
Subject: Comparing 7.4 with 8.0