Re: Fighting the planner >:-( - Mailing list pgsql-performance

From Виктор Егоров
Subject Re: Fighting the planner >:-(
Date
Msg-id CAGnEbojAHKwwJcHjA_aZPO4Xbk9tH=Y0sHmQLCzUV4Y5N629rw@mail.gmail.com
Whole thread Raw
In response to Re: Fighting the planner >:-(  (Casey Allen Shobe <casey@shobe.info>)
List 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 by date:

Previous
From: Casey Allen Shobe
Date:
Subject: Re: Fighting the planner >:-(
Next
From: Jeff Janes
Date:
Subject: Re: Simple join doesn't use index