Re: Indexes not being used. - Mailing list pgsql-general

From Sam Tregar
Subject Re: Indexes not being used.
Date
Msg-id Pine.LNX.4.30.0106221321520.20091-100000@localhost.localdomain
Whole thread Raw
In response to Re: Indexes not being used.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Indexes not being used.
List 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


pgsql-general by date:

Previous
From: Jason Earl
Date:
Subject: Re: Indexes not being used.
Next
From: Tom Lane
Date:
Subject: Re: Indexes not being used.