Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 1ADD3475F5F for ; Thu, 3 Oct 2002 14:50:29 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 6F571475EA9 for ; Thu, 3 Oct 2002 14:50:28 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g93Io0hR011084; Thu, 3 Oct 2002 14:50:09 -0400 (EDT) To: Manfred Koizar Cc: "scott.marlowe" , pgsql-hackers@postgresql.org Subject: Re: Correlation in cost_index() In-reply-to: References: <5oropusfmcur82u3l5odpnhkbg8ha0aj5t@4ax.com> Comments: In-reply-to Manfred Koizar message dated "Thu, 03 Oct 2002 19:39:44 +0200" Date: Thu, 03 Oct 2002 14:50:00 -0400 Message-ID: <11083.1033671000@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/158 X-Sequence-Number: 29927 Manfred Koizar writes: > Never mind! I just stumbled over those lines in selfuncs.c where > indexCorrelation is calculated by dividing the correlation of the > first index column by the number of index columns. Yeah, I concluded later that that was bogus. I've been thinking of just using the correlation of the first index column and ignoring the rest; that would not be great, but it's probably better than what's there. Have you got a better formula? regards, tom lane