Re: Fighting the planner >:-(

From: Виктор Егоров <vyegorov(at)gmail(dot)com>
To: Casey Allen Shobe <casey(at)shobe(dot)info>
Cc: Richard Huxton <dev(at)archonet(dot)com>, pgsql-performance(at)postgresql(dot)org
Subject: Re: Fighting the planner >:-(
Date: 2013-02-01 22:17:54
Message-ID: CAGnEbojAHKwwJcHjA_aZPO4Xbk9tH=Y0sHmQLCzUV4Y5N629rw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

2013/2/2 Casey Allen Shobe <casey(at)shobe(dot)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

In response to

Browse pgsql-performance by date

  From Date Subject
Next Message Jeff Janes 2013-02-02 16:39:42 Re: Simple join doesn't use index
Previous Message Casey Allen Shobe 2013-02-01 22:03:34 Re: Fighting the planner >:-(