Re: Index usage

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pedro Alves <pmalves(at)think(dot)pt>
Cc: Dennis Björklund <db(at)zigo(dot)dhs(dot)org>, PostGreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Re: Index usage
Date: 2003-08-26 14:07:02
Message-ID: 11051.1061906822@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Pedro Alves <pmalves(at)think(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond 2003-08-26 14:10:57 Excel 97 Export to Postgres
Previous Message Andreas Fromm 2003-08-26 14:06:06 deleting referenced data