Re: Key Vs Index

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: Abdul Rahman <abr_ora(at)yahoo(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Key Vs Index
Date: 2009-02-11 07:43:20
Message-ID: 49928198.7030809@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Marlowe wrote:

> Note that the index on the FK side isn't auto created.

Of course, you often don't want one - you might rarely or never DELETE
from the referenced table or UPDATE the primary key value. In that case,
the index just slows down updates and deletes on the table with the fk
without gaining you anything.

--
Craig Ringer

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2009-02-11 07:48:20 Re: Key Vs Index
Previous Message Abdul Rahman 2009-02-11 07:37:26 Re: Key Vs Index