Re: primary key and foreign key

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Jessica Richard <rjessil(at)yahoo(dot)com>, pgsql-admin(at)postgresql(dot)org
Subject: Re: primary key and foreign key
Date: 2007-07-25 17:25:53
Message-ID: 219041.90797.qm@web31809.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


--- Jessica Richard <rjessil(at)yahoo(dot)com> wrote:

> 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?

Correct.

Regards,
Richard Broersma Jr.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Martial Elise KIBA 2007-07-25 17:28:44 Localisation
Previous Message Jessica Richard 2007-07-25 17:20:45 primary key and foreign key