Questions regarding indexes - Mailing list pgsql-general

From Bruno Lavoie
Subject Questions regarding indexes
Date
Msg-id 4970AC11.4020207@gmail.com
Whole thread Raw
Responses Re: Questions regarding indexes  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Re: Questions regarding indexes  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List 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


pgsql-general by date:

Previous
From: Bruno Lavoie
Date:
Subject: Re: Diff tool for two schema
Next
From: David Fetter
Date:
Subject: Re: Question regarding new windowing functions in 8.4devel