Re: Questions regarding indexes - Mailing list pgsql-general

From Scott Marlowe
Subject Re: Questions regarding indexes
Date
Msg-id dcc563d10901161139m1b0aa20aw8466304db37e0c@mail.gmail.com
Whole thread Raw
In response to Questions regarding indexes  (Bruno Lavoie <bruno.lavoie@gmail.com>)
List pgsql-general
On Fri, Jan 16, 2009 at 8:47 AM, Bruno Lavoie <bruno.lavoie@gmail.com> wrote:
> Hello,
>
> are these statements true:
>
> «You should always index fks. The only exception is when the matching unique
> or primary key is never updated or deleted» ?

No.  If the table that fks to another table has 10 rows and will never
have more than a few hundred, why index it?

> «Small tables do not require indexes» ?

Usually true, except for unique indexes, which provide more
functionality than just indexing.

pgsql-general by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Query sometimes takes down server
Next
From: "Scott Marlowe"
Date:
Subject: Re: Questions regarding indexes