From: | "scott(dot)marlowe" <scott(dot)marlowe(at)ihs(dot)com> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Very poor estimates from planner |
Date: | 2003-11-05 22:55:56 |
Message-ID: | Pine.LNX.4.33.0311051554110.11025-100000@css120.ihs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Wed, 5 Nov 2003, Rod Taylor wrote:
> Since this is a large query, attachments for the explains / query.
>
> Configuration:
> dev_iqdb=# select version();
> version
> ------------------------------------------------------------------------
> PostgreSQL 7.4beta1 on i386-portbld-freebsd4.7, compiled by GCC
> 2.95.4
> (1 row)
>
> SET default_statistics_target = 1000;
> ANALYZE;
> set from_collapse_limit = 100;
> set join_collapse_limit = 20;
I'm not sure if that will actually change the default_statistics_target of
the tables you're analyzing, I think it will only apply to newly created
tables.
I believe you have to alter table alter column set statistics 1000 for
each column you want a statistic of 1000. You might wanna try starting
with 50 or 100 and see if that works first.
From | Date | Subject | |
---|---|---|---|
Next Message | Reinhard Max | 2003-11-05 23:08:56 | Re: Erroneous PPC spinlock code |
Previous Message | Neil Conway | 2003-11-05 22:44:24 | Re: [HACKERS] Changes to Contributor List |