pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Simon Riggs <simon@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Kevin Grittner <Kevin.Grittner@wicourts.gov>
Cc: pgsql-performance@postgresql.org, Andreas Kretschmer <akretschmer@spamfence.net>
Subject: Re: BETWEEN optimizer problems with single-value
Date: Thu, 16 Mar 2006 00:07:06 +0000
Message-ID: <1142467626.3859.207.camel@localhost.localdomain> (raw)
In-Reply-To: <28798.1142450270@sss.pgh.pa.us>
References: <44180105.EE98.0025.0@wicourts.gov>
	<20060315181735.GA22240@KanotixBox>
	<44180D33.EE98.0025.0@wicourts.gov>
	<28798.1142450270@sss.pgh.pa.us>

On Wed, 2006-03-15 at 14:17 -0500, Tom Lane wrote:

> It looks to me like this is a matter of bad cost estimation, ie, it's
> thinking the other index is cheaper to use.  Why that is is not clear.
> Can we see the pg_stats rows for ctofcNo and calDate?

ISTM that when the BETWEEN constants match we end up in this part of
clauselist_selectivity()...





view thread (20+ messages)  latest in thread

Message-ID: <1142467626.3859.207.camel@localhost.localdomain>
Permalink:  ../1142467626.3859.207.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1142467626.3859.207.camel@localhost.localdomain

 · 

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-performance@postgresql.org
  Cc: simon@2ndquadrant.com, tgl@sss.pgh.pa.us, Kevin.Grittner@wicourts.gov, akretschmer@spamfence.net
  Subject: Re: BETWEEN optimizer problems with single-value
  In-Reply-To: <1142467626.3859.207.camel@localhost.localdomain>

* 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