Re: Indexes not used for "min()" - Mailing list pgsql-bugs

From Bruno Wolff III
Subject Re: Indexes not used for "min()"
Date
Msg-id 20030804205815.GA14136@wolff.to
Whole thread Raw
In response to Indexes not used for "min()"  ("Valsecchi, Patrick" <patrick.valsecchi@nagrastar.com>)
List pgsql-bugs
On Tue, Jul 29, 2003 at 09:48:37 -0600,
  "Valsecchi, Patrick" <patrick.valsecchi@nagrastar.com> wrote:
>
> When doing the following query, it's obvious that postgres should use
> the index:
>
> stats=# explain select min(time) from call;

This has been discussed on the mailing lists numerous times. If you are
interested in details you can search the archives. If you just want a faster
equivalent query use:
select time from call order by time limit 1;

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: problem with libpq7.3.3/encrypted
Next
From: Tom Lane
Date:
Subject: Re: html tarball not found in doc/Makefile