Re: Query planner: current_* vs. explicit date - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Query planner: current_* vs. explicit date
Date
Msg-id 200310221325.18470.josh@agliodbs.com
Whole thread Raw
In response to Re: Query planner: current_* vs. explicit date  ("scott.marlowe" <scott.marlowe@ihs.com>)
Responses Re: Query planner: current_* vs. explicit date  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Scott, Chris,

> I'd guess that the planner doesn't know what current_date::timestamp is
> ahead of time, so it chooses a seq scan.

Yes, this is a known problem.  There was a single-query workaround, but I
can't remember it right now.

--
-Josh BerkusAglio Database SolutionsSan Francisco



pgsql-sql by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Expressional Indexes
Next
From: Bruce Momjian
Date:
Subject: Re: Expressional Indexes