Questions regarding indexes

From: Bruno Lavoie <bruno(dot)lavoie(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Questions regarding indexes
Date: 2009-01-16 15:47:29
Message-ID: 4970AC11.4020207@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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» ?
* «Small tables do not require indexes» ?
* «Create an index if you frequently want to retrieve less than
about ~15% of the rows in a large table»
* «Index only columns with unique values, or only with a few duplicates»

Is it necessary to run ANALYZE on the table after any index creation to
gather statistics about the index/column?

Thanks
Bruno Lavoie

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David Fetter 2009-01-16 17:07:32 Re: Question regarding new windowing functions in 8.4devel
Previous Message Bruno Lavoie 2009-01-16 14:45:09 Re: Diff tool for two schema