pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Manfred Koizar <mkoi-pg@aon.at>
Cc: scott.marlowe <scott.marlowe@ihs.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Correlation in cost_index()
Date: Thu, 03 Oct 2002 14:50:00 -0400
Message-ID: <11083.1033671000@sss.pgh.pa.us> (raw)
In-Reply-To: <kjvopusi65nsige1l7le9tmf6ds8acd6ne@4ax.com>
References: <5oropusfmcur82u3l5odpnhkbg8ha0aj5t@4ax.com>
	<Pine.LNX.4.33.0210031059070.5705-100000@css120.ihs.com>
	<kjvopusi65nsige1l7le9tmf6ds8acd6ne@4ax.com>

Manfred Koizar <mkoi-pg@aon.at> 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



view thread (29+ messages)  latest in thread

Message-ID: <11083.1033671000@sss.pgh.pa.us>
Permalink:  ../11083.1033671000@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/11083.1033671000@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, mkoi-pg@aon.at, scott.marlowe@ihs.com
  Subject: Re: Correlation in cost_index()
  In-Reply-To: <11083.1033671000@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox