From: Rodrigo De León <rdeleonp@gmail.com>
To: L D <lenardd@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: PK & FK & Index Questio
Date: Sun, 2 Sep 2007 16:20:51 -0500
Message-ID: <a55915760709021420i32247e2x64963dc025cbd25@mail.gmail.com> (raw)
In-Reply-To: <BAY120-W14B9D62D95DF7DDBF8794BBBC80@phx.gbl>
References: <BAY120-W14B9D62D95DF7DDBF8794BBBC80@phx.gbl>
On 9/2/07, L D <lenardd@hotmail.com> wrote:
> Should I set the latter table's FK also to PK?
It's sane.
> If so, do I need to set an index on the FK even though it's also the primary key?
No need to do so.
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-sql@postgresql.org
Cc: rdeleonp@gmail.com, lenardd@hotmail.com
Subject: Re: PK & FK & Index Questio
In-Reply-To: <a55915760709021420i32247e2x64963dc025cbd25@mail.gmail.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