Re: Performance of a query - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Performance of a query
Date
Msg-id 20030612014008.GA20990@wolff.to
Whole thread Raw
In response to Re: Performance of a query  (Edmund Dengler <edmundd@eSentire.com>)
List pgsql-general
On Wed, Jun 11, 2003 at 21:13:52 -0400,
  Edmund Dengler <edmundd@eSentire.com> wrote:
> Tried the query. Looks like this suffers the same fate as now(): the
> planner does not deal with this as a pseudo constant, so therefore the
> estimator over-estimates the number of possible rows, and thereby chooses
> the wrong operator (a "merge join") to apply.

I tried some more variations and couldn't get it to use an index.
It seems odd that a timestamp without time zone is getting treated
as not constant (presumably because the timezone could change).

pgsql-general by date:

Previous
From: Ardell Dzaky
Date:
Subject: test - pls ignore
Next
From: Ardell Dzaky
Date:
Subject: test select_having FAILED