Re: multi-column index - Mailing list pgsql-performance

From Tom Lane
Subject Re: multi-column index
Date
Msg-id 19588.1111029553@sss.pgh.pa.us
Whole thread Raw
In response to Re: multi-column index  (David Brown <time@bigpond.net.au>)
Responses Re: multi-column index
List pgsql-performance
David Brown <time@bigpond.net.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

pgsql-performance by date:

Previous
From: Greg Stark
Date:
Subject: Re: Speeding up select distinct
Next
From: Michael Fuhr
Date:
Subject: Re: Help to find out problem with joined tables