Re: Index usage - Mailing list pgsql-general

From Tom Lane
Subject Re: Index usage
Date
Msg-id 11051.1061906822@sss.pgh.pa.us
Whole thread Raw
In response to Re: Index usage  (Pedro Alves <pmalves@think.pt>)
List pgsql-general
Pedro Alves <pmalves@think.pt> writes:
> The vacuum analyze is run on daily basis, so that cannot be the point.

The next thing I'd try to improve the planner's guess is to increase the
statistics target for the ra_datacolh column (see ALTER TABLE SET
STATISTICS).  It looks like the default of 10 is too small for that
column --- try 100 and see if the rowcount estimates get any closer.

            regards, tom lane

pgsql-general by date:

Previous
From: Raymond
Date:
Subject: Excel 97 Export to Postgres
Next
From: Jan Wieck
Date:
Subject: Re: Buglist