Re: Optimizer(?) off by factor of 3 ... ? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Optimizer(?) off by factor of 3 ... ?
Date
Msg-id 7196.1013444768@sss.pgh.pa.us
Whole thread Raw
In response to Optimizer(?) off by factor of 3 ... ?  ("Marc G. Fournier" <scrappy@hub.org>)
Responses Re: Optimizer(?) off by factor of 3 ... ?
List pgsql-hackers
"Marc G. Fournier" <scrappy@hub.org> writes:
>   ->  Index Scan using clubs_idx on clubs c  (cost=0.00..1695474.62 rows=26569 width=64) (actual time=0.48..1936.95
rows=23510loops=1)
 

This indexscan cost estimate is completely out of whack, it would seem.

Have you done an ANALYZE on this table recently?  If so, what do you get
fromselect * from pg_stats where tablename = 'clubs';select * from pg_class where relname = 'clubs';
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Idea for making COPY data Microsoft-proof
Next
From: Peter Eisentraut
Date:
Subject: Re: IFNULL -> COALESCE