Re: tsvector pg_stats seems quite a bit off. - Mailing list pgsql-hackers

From Jan Urbański
Subject Re: tsvector pg_stats seems quite a bit off.
Date
Msg-id 4C02E5BB.8060104@wulczer.org
Whole thread Raw
In response to Re: tsvector pg_stats seems quite a bit off.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On 31/05/10 00:07, Tom Lane wrote:
> Jan Urbański <wulczer@wulczer.org> writes:
> I committed the attached revised version of the patch.  Revisions are
> mostly minor but I did make two substantive changes:
> 
> * The patch changed the target number of mcelems from 10 *
> statistics_target to just statistics_target.  I reverted that since
> I don't think it was intended; at least we hadn't discussed it.

Yeah, that was accidental.

> * I modified the final processing to avoid one qsort step if there are
> fewer than num_mcelems hashtable entries that pass the cutoff frequency
> filter, and in any case to sort only those entries that pass it rather
> than all of them.  With the significantly larger number of hashtable
> entries that will now be used, it seemed like a good thing to try to
> cut the qsort overhead.

Make sense.

Thanks,
Jan


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: tsvector pg_stats seems quite a bit off.
Next
From: Andy Balholm
Date:
Subject: Re: dividing money by money