| From: | Jan Urbański <wulczer(at)wulczer(dot)org> |
|---|---|
| To: | Sushant Sinha <sushant354(at)gmail(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: planner row-estimates for tsvector seems horribly wrong |
| Date: | 2010-10-24 12:57:47 |
| Message-ID: | 4CC42D4B.7020307@wulczer.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 24/10/10 14:44, Sushant Sinha wrote:
> I am using gin index on a tsvector and doing basic search. I see the
> row-estimate of the planner to be horribly wrong. It is returning
> row-estimate as 4843 for all queries whether it matches zero rows, a
> medium number of rows (88,000) or a large number of rows (726,000).
>
> The table has roughly a million docs.
>
> I see a similar problem reported here but thought it was fixed in 9.0
> which I am running.
Hi,
what's your default statistics target? Could you attach the output of
select * from pg_stats where tablename = '<the-tablename>';
and
select typanalyze from pg_type where typname = 'tsvector';
Thanks,
Jan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Jan Urbański | 2010-10-24 13:07:58 | Re: planner row-estimates for tsvector seems horribly wrong |
| Previous Message | Sushant Sinha | 2010-10-24 12:44:21 | planner row-estimates for tsvector seems horribly wrong |