pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mark Kirkwood <markir@ihug.co.nz>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] New Optimizer Behaviour In 7.0b1
Date: Sat, 26 Feb 2000 18:14:49 -0500
Message-ID: <15360.951606889@sss.pgh.pa.us> (raw)
In-Reply-To: <38B8364F.FD8D1D3D@ihug.co.nz>
References: <38B77942.8B5B6A85@ihug.co.nz>
	<26472.951552291@sss.pgh.pa.us>
	<38B8364F.FD8D1D3D@ihug.co.nz>

Mark Kirkwood <markir@ihug.co.nz> writes:
> It looks like the estimate on the big table ( fact1 ) are right order of
> magnitude, but the small table ( dim0 ) ones are too high (and presumably )
> throwing the rest off

At least part of the problem is that the selectivity code doesn't know
how to deal with date/time datatypes :-(.  I was waiting for Thomas to
commit the great date/time reorganization before I wrote that code.
But he's done now, so I've gone in and fixed convert_to_scalar to know
about all the surviving date/time types.

If you like, you can pick up the updated version of 
src/backend/utils/adt/selfuncs.c from the CVS server, or grab a
snapshot tarball dated later than this message, and see whether
the selectivity estimates get any better.

			regards, tom lane



view thread (6+ messages)  latest in thread

Message-ID: <15360.951606889@sss.pgh.pa.us>
Permalink:  ../15360.951606889@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/15360.951606889@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, markir@ihug.co.nz
  Subject: Re: [SQL] New Optimizer Behaviour In 7.0b1
  In-Reply-To: <15360.951606889@sss.pgh.pa.us>
  References: <38B77942.8B5B6A85@ihug.co.nz> <26472.951552291@sss.pgh.pa.us> <38B8364F.FD8D1D3D@ihug.co.nz> <15360.951606889@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