Re: multi-column index

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Brown <time(at)bigpond(dot)net(dot)au>
Cc: Josh Berkus <pgsql-performance(at)postgresql(dot)org>
Subject: Re: multi-column index
Date: 2005-03-17 03:19:13
Message-ID: 19588.1111029553@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

David Brown <time(at)bigpond(dot)net(dot)au> writes:
> Actually, I'm surprised the planner came up with such a low cost for the
> single column index, unless ... perhaps correlation statistics aren't
> used when determining costs for multi-column indexes?

The correlation calculation for multi-column indexes is pretty whacked
out pre-8.0. I don't think it's that great in 8.0 either --- we really
need to make ANALYZE calculate the correlation explicitly for each
index, probably, rather than trying to use per-column correlations.

regards, tom lane

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Michael Fuhr 2005-03-17 04:42:18 Re: Help to find out problem with joined tables
Previous Message Greg Stark 2005-03-17 02:29:13 Re: Speeding up select distinct