From: Rod Taylor <rbt@rbt.ca>
To: Dimitri Nagiev <dnagiev@gmx.de>
Cc: Postgresql Performance <pgsql-performance@postgresql.org>
Subject: Re: Optimizing >= and <= for numbers and dates
Date: Wed, 01 Oct 2003 13:38:02 -0400
Message-ID: <1065029881.85344.138.camel@jester> (raw)
In-Reply-To: <24741.1065029447@www60.gmx.net>
References: <24741.1065029447@www60.gmx.net>
On Wed, 2003-10-01 at 13:30, Dimitri Nagiev wrote:
> Hi all,
>
> I haven't found any official documentation about the postgres sql optimizer
> on the web, so please forgive me if there is such a document and point me to
> the right direction.
>
> I've got the following problem: I cannot make the postgres SQL Optimizer use
> an index on a date field to filter out a date range, e.g.
>
> select * from mytable where mydate >= '2003-10-01';
>
> Seq Scan on mytable (cost=0.00..2138.11 rows=12203 width=543)
> Filter: (mydate >= '2003-09-01'::date)
EXPLAIN ANALYZE output please.
Attachments:
signature.asc (application/pgp-signature, 186B) download
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: rbt@rbt.ca, dnagiev@gmx.de
Subject: Re: Optimizing >= and <= for numbers and dates
In-Reply-To: <1065029881.85344.138.camel@jester>
References: <24741.1065029447@www60.gmx.net> <1065029881.85344.138.camel@jester>
* 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