Re: [PERFORM] Planner is getting wrong row count

2013-04-03 Thread Kevin Grittner
AI Rumman wrote: > Why is the following query getting wrong estimation of rows? > I am using Postgresql 9.2.1 with default_statistics_target = 100. > I execute vacuum analyze each night. > Hash Join  (cost=14067.90..28066.53 rows=90379 width=26) (actual > time=536.009..1772.910 rows=337139 loop

[PERFORM] Planner is getting wrong row count

2013-04-02 Thread AI Rumman
Why is the following query getting wrong estimation of rows? I am using Postgresql 9.2.1 with default_statistics_target = 100. I execute vacuum analyze each night. explain analyze SELECT entity.id AS "Leads_id", entity.type AS "Leads_type" , leads.firstname AS "Leads_firstname", leads.lastname AS