pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Broersma Jr <rabroersma@yahoo.com>
To: Jessica Richard <rjessil@yahoo.com>
To: pgsql-admin@postgresql.org
Subject: Re: primary key and foreign key
Date: Wed, 25 Jul 2007 10:25:53 -0700 (PDT)
Message-ID: <219041.90797.qm@web31809.mail.mud.yahoo.com> (raw)
In-Reply-To: <768150.12661.qm@web56410.mail.re3.yahoo.com>


--- Jessica Richard <rjessil@yahoo.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.




view thread (2+ messages)

Message-ID: <219041.90797.qm@web31809.mail.mud.yahoo.com>
Permalink:  ../219041.90797.qm@web31809.mail.mud.yahoo.com/
Also on:    postgresql.org/message-id/219041.90797.qm@web31809.mail.mud.yahoo.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: rabroersma@yahoo.com, rjessil@yahoo.com
  Subject: Re: primary key and foreign key
  In-Reply-To: <219041.90797.qm@web31809.mail.mud.yahoo.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox