Re: Fighting the planner >:-(

Victor Yegorov <vyegorov@gmail.com>

From: Виктор Егоров <vyegorov@gmail.com>
To: Casey Allen Shobe <casey@shobe.info>
Cc: Richard Huxton <dev@archonet.com>, pgsql-performance@postgresql.org
Date: 2013-02-01T22:17:54Z
Lists: pgsql-performance
2013/2/2 Casey Allen Shobe <casey@shobe.info>:
> However I was unable to adjust the statistics target using that command:
>
> alter table opportunity.census_user set statistics 500;
> ERROR:  syntax error at or near "statistics"
> LINE 1: alter table opportunity.census_user set statistics 500;

I'm sorry for this, my bad. Try the following:

ALTER TABLE census_user ALTER parent_id SET STATISTICS 500;
ALTER TABLE census_user ALTER stakeholder_code SET STATISTICS 500;

Do the same for all the columns in ‘hewitt_1_0_factors_precalc_new_pkey’ index,
setting target at 1000. I would also updated target for columns from
this filter:
Filter: (((h.discount_type)::text = ANY ('{"Avg Comp",Blue}'::text[]))
AND ((h.data_type)::text = 'Historical'::text) AND ((h.source)::text =
'Hewitt 1.0'::text)
AND ((h.service_catg_scheme)::text = '11+3'::text))


-- 
Victor Y. Yegorov