Re: [PERFORM] Planner question - wrong row count estimation

2009-09-21 Thread Josh Berkus
On 9/19/09 5:08 PM, Michael Korbakov wrote: > -> Hash Join (cost=8.50..25.11 rows=1 > width=28) (actual time=0.092..1.864 rows=560 loops=1) >Hash Cond: > (((partners_shares.year)::double precision = (shares.year)::double > precision) AND ((

[PERFORM] Planner question - wrong row count estimation

2009-09-19 Thread Michael Korbakov
Hi everybody. I'm having an issues with wrong plan for query in PostgreSQL (version 8.3). EXPLAIN ANALYZE shows that there're a lot of places where planner estimates row count totally wrong, like 1 instead of 12000+. default_statistics_target variable is set to 100, and I tried to run VACUU

[PERFORM] Planner question - wrong row count estimation

2009-09-19 Thread Michael Korbakov
Hi everybody. I'm having an issues with wrong plan for query in PostgreSQL (version 8.3). EXPLAIN ANALYZE shows that there're a lot of places where planner estimates row count totally wrong, like 1 instead of 12000+. default_statistics_target variable is set to 100, and I tried to run VACUU