Re: Indexes not being used.

From: Sam Tregar <sam(at)tregar(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: Indexes not being used.
Date: 2001-06-22 17:25:47
Message-ID: Pine.LNX.4.30.0106221321520.20091-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 22 Jun 2001, Tom Lane wrote:

> You need to VACUUM ANALYZE your tables after you've finished with the
> bulk load step.

Thanks. This information seems to be missing from the manual! It should
probably go in "11.3.3. Remove Indices". Currently the advice given
produces tables that don't use their indexes.

Better yet, Postgres could be modified to automatically VACUUM ANALYZE
after a CREATE INDEX. Isn't it a pretty good bet that the user will want
to use the index after they've created it?

> And no, behavior on toy tables is not a guide to what the planner will
> choose to do with large tables.

Another pearl of wisdom that should probably go in the manual.

-sam

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jason Earl 2001-06-22 17:36:33 Re: Indexes not being used.
Previous Message Tom Lane 2001-06-22 17:10:20 Re: Indexes not being used.