Re: Help on query plan.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "William N(dot) Zanatta" <william(at)veritel(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org, sszabo(at)megazone23(dot)bigpanda(dot)com
Subject: Re: Help on query plan.
Date: 2003-01-21 17:46:30
Message-ID: 3723.1043171190@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"William N. Zanatta" <william(at)veritel(dot)com(dot)br> writes:
> OK, as I don't know what is much and what isn't for the stats target,
> I tried to increase it firstly to 15 (10 is default according to
> documentation) and then to 20. Results follow:

Try like 50 or 100. Also, does the EXPLAIN result change with the
higher correlation figures? I'd expect estimated cost of indexscan
to drop with higher correlation.

If you dig into the pghackers archives you will find some discussions
about changing the equation used for adjusting indexscan based on
correlation. I suspect the real solution to your problem will be to
alter the equation. But I'm curious about whether we have reliable
stats, first...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message will trillich 2003-01-21 17:47:45 partials dates?
Previous Message William N. Zanatta 2003-01-21 17:42:31 Re: Help on query plan.