Re: Are foreign key's automatically set as indicies?

From: Raymond O'Donnell <rod(at)iol(dot)ie>
To: camb <mvpaustralia(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Are foreign key's automatically set as indicies?
Date: 2007-05-19 15:04:30
Message-ID: 464F11FE.70205@iol.ie
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 16/05/2007 05:09, camb wrote:

> I'm sorta new to PG and am just wondering, when I create a foreign key
> is it automatically set as an indexed column or do I need to also set
> that manually?

AFAIK you need to create the index separately. I use PgAdmin most of the
time, which does that by default, so I'm a bit hazy on doing it by hand.

Ray.

---------------------------------------------------------------
Raymond O'Donnell, Director of Music, Galway Cathedral, Ireland
rod(at)iol(dot)ie
---------------------------------------------------------------

In response to

Browse pgsql-general by date

  From Date Subject
Next Message PFC 2007-05-19 15:13:44 Re: Are foreign key's automatically set as indicies?
Previous Message Andrew Sullivan 2007-05-19 13:28:19 Re: Data replication through disk replication