queries stop using indexes - Mailing list pgsql-general

From Jonathan Vanasco
Subject queries stop using indexes
Date
Msg-id 676FEFEB-6894-4747-AF8C-478EFEFB38A6@2xlp.com
Whole thread Raw
Responses Re: queries stop using indexes  (Ragnar <gnari@hive.is>)
List pgsql-general
I have a table with 15 cols , there is an joint index on 5 of them

there are ~15million records in the table, and it gets heavy  use via
update & insert

i recently noticed that after a day of use, the index is no longer
being respected in some/all queries and a seq scan on the table is used

i ran analyze, no change.
i ran vacuum analyze, no change.

i dropped the index, and recreated it -- its now used again.

this happened 3x already this week.

can anyone offer a suggestion?


// Jonathan Vanasco

| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -
| RoadSound.com - Tools For Bands, Stuff For Fans
| Collaborative Online Management And Syndication Tools
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - -



pgsql-general by date:

Previous
From: "Justin Dearing"
Date:
Subject: Default value of column not respecting character length or domain restraints.
Next
From: Tom Lane
Date:
Subject: Re: Default value of column not respecting character length or domain restraints.