Re: Fighting the planner >:-(

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

I'll get back to you on this Monday - I'm heading home for the week now.

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;
^

On Fri, Feb 1, 2013 at 4:55 PM, Виктор Егоров <vyegorov(at)gmail(dot)com> wrote:

> 2013/2/1 Casey Allen Shobe <casey(at)shobe(dot)info>:
> > Rowcounts are shown in the earlier paste link, but apparently I forgot to
> > include the census table - hewitt_1_0_factors_precalc_new has 4,135,890
> > rows, and census_user has 1846439 rows.
> >
> > Statistics target is the default at 100.
>
> I would try the following:
> ALTER TABLE hewitt_1_0_factors_precalc_new SET STATISTICS 1000;
> ALTER TABLE census_user SET STATISTICS 500;
> ALTER TABLE census_output SET STATISTICS 500;
> and analyzed them after. I hope I guessed ‘census_output’ name correctly.
>
> And could you kindly share the plan after:
> SET enable_nestloop TO off;
>
>
> --
> Victor Y. Yegorov
>

--
Casey Allen Shobe
casey(at)shobe(dot)info

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Виктор Егоров 2013-02-01 22:17:54 Re: Fighting the planner >:-(
Previous Message Виктор Егоров 2013-02-01 21:55:21 Re: Fighting the planner >:-(