pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jim C. Nasby <jnasby@pervasive.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Shaun Thomas <sthomas@leapfrogonline.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Confirmation of bad query plan generated by 7.4
Date: Thu, 15 Jun 2006 10:50:00 -0500
Message-ID: <20060615155000.GJ34196@pervasive.com> (raw)
In-Reply-To: <16554.1150339015@sss.pgh.pa.us>
References: <9119.1150222168@sss.pgh.pa.us>
	<448EDFC4.8F27.00A9.0@leapfrogonline.com>
	<20060613211347.GB34196@pervasive.com>
	<10918.1150236282@sss.pgh.pa.us>
	<20060613223950.GK34196@pervasive.com>
	<18667.1150249849@sss.pgh.pa.us>
	<A22FA1C5-1815-4B31-BB81-061CB6B8FF1D@pervasive.com>
	<16554.1150339015@sss.pgh.pa.us>

On Wed, Jun 14, 2006 at 10:36:55PM -0400, Tom Lane wrote:
> Jim Nasby <jnasby@pervasive.com> writes:
> > On Jun 13, 2006, at 8:50 PM, Tom Lane wrote:
> >> Hmm ... worksforme.  Could you provide a complete test case?
> 
> > decibel=# create table date_test(d date not null, i int not null);
> > [etc]
> 
> Not sure what you are driving at.  The estimates are clearly not
> defaults (the default estimate would be 1/3rd of the table, or
> about 100mil rows).  Are you expecting them to be the same?  If so why?
> The comparison values are slightly different after all.

Yes... I was expecting that since we're looking at a date field that the
timestamp would get cast to a date. Sorry I wasn't clear on that...
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461



view thread (19+ messages)

Message-ID: <20060615155000.GJ34196@pervasive.com>
Permalink:  ../20060615155000.GJ34196@pervasive.com/
Also on:    postgresql.org/message-id/20060615155000.GJ34196@pervasive.com

 · 

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: jnasby@pervasive.com, tgl@sss.pgh.pa.us, sthomas@leapfrogonline.com
  Subject: Re: Confirmation of bad query plan generated by 7.4
  In-Reply-To: <20060615155000.GJ34196@pervasive.com>

* 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