primary key and foreign key

From: Jessica Richard <rjessil(at)yahoo(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: primary key and foreign key
Date: 2007-07-25 17:20:45
Message-ID: 768150.12661.qm@web56410.mail.re3.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Just want to be very clear that:

1. adding a primary key will have an implicit index automatically on the column(s).

2. Adding a foreign key will NOT have an index created automatically, it only does the referencing work. If an index is needed on the F-key column, it has to be created, right?

Thanks.


---------------------------------
Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Richard Broersma Jr 2007-07-25 17:25:53 Re: primary key and foreign key
Previous Message Igor Neyman 2007-07-25 17:07:35 Re: Searching in a string with index