Search Postgresql Archives

Re: index scan backward plan question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Neil Conway <neilc@xxxxxxxxxxx> writes:
>> ->  Index Scan Backward using merged_weight_date_idx on merged  
>> (cost=0.00..31295593.98 rows=141839 width=229) (actual 
>> time=3.888..10380.783 rows=500 loops=1)

> The mis-estimation of the result set of the index scan is clearly a
> problem -- have you run ANALYZE recently?

I'm not sure the above is a misestimation --- the actual rowcount is
going to be restricted by the LIMIT node (which I'm betting is actually
LIMIT 50 OFFSET 450, though that's strictly a guess from the rowcounts).
It would be useful to know how many rows match the query without any
LIMIT though.

> Otherwise, please provide the queries that trigger the problem and the
> relevant schema definitions.

Yes, giving people only the EXPLAIN output without the queries or table
definitions (in particular, the available indexes) is not a recipe for
getting quality advice.

			regards, tom lane


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux