pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Shaun Thomas <sthomas@leapfrogonline.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Confirmation of bad query plan generated by 7.4 tree
Date: Tue, 13 Jun 2006 17:07:24 -0400
Message-ID: <10557.1150232844@sss.pgh.pa.us> (raw)
In-Reply-To: <448EDFC4.8F27.00A9.0@leapfrogonline.com>
References: <448EB053.8F27.00A9.0@leapfrogonline.com>
	<448EB053.8F27.00A9.0@leapfrogonline.com>
	<9119.1150222168@sss.pgh.pa.us>
	<448EDFC4.8F27.00A9.0@leapfrogonline.com>

"Shaun Thomas" <sthomas@leapfrogonline.com> writes:
> Simply changing:
> now() - interval '2 days'
> to
> '2006-06-11 15:30:00'
> generated a much more accurate set of estimates.

Yeah, 7.4 won't risk basing estimates on the results of non-immutable
functions.  We relaxed that in 8.0 I believe.

			regards, tom lane



view thread (19+ messages)  latest in thread

Message-ID: <10557.1150232844@sss.pgh.pa.us>
Permalink:  ../10557.1150232844@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10557.1150232844@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-performance@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sthomas@leapfrogonline.com
  Subject: Re: Confirmation of bad query plan generated by 7.4 tree
  In-Reply-To: <10557.1150232844@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