Re: Fighting the planner >:-(
| От | Виктор Егоров |
|---|---|
| Тема | Re: Fighting the planner >:-( |
| Дата | |
| Msg-id | CAGnEbojAHKwwJcHjA_aZPO4Xbk9tH=Y0sHmQLCzUV4Y5N629rw@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: Fighting the planner >:-( (Casey Allen Shobe <casey@shobe.info>) |
| Список | 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
В списке pgsql-performance по дате отправления: