From: Marcin Mank <marcin.mank@gmail.com>
To: Shaun Thomas <sthomas@leapfrogonline.com>
To: pgsql-performance@postgresql.org
Subject: Re: Confirmation of bad query plan generated by 7.4 tree
Date: Tue, 13 Jun 2006 20:17:46 +0200
Message-ID: <00af01c68f15$acd6eed0$0c67a8c0@maniek> (raw)
References: <448EB053.8F27.00A9.0@leapfrogonline.com>
> warehouse-# WHERE e.event_date > now() - interval '2 days'
Try explicitly querying:
WHERE e.event_date > '2006-06-11 20:15:00'
In my understanding 7.4 does not precalculate this timestamp value for the
purpose of choosing a plan.
Greetings
Marcin
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: marcin.mank@gmail.com, sthomas@leapfrogonline.com
Subject: Re: Confirmation of bad query plan generated by 7.4 tree
In-Reply-To: <00af01c68f15$acd6eed0$0c67a8c0@maniek>
* 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