Re: Index not being used in MAX function (7.2.3) - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Index not being used in MAX function (7.2.3)
Date
Msg-id 20030613153746.GC16756@wolff.to
Whole thread Raw
In response to Re: Index not being used in MAX function (7.2.3)  ("Jim C. Nasby" <jim@nasby.net>)
Responses Re: Index not being used in MAX function (7.2.3)  ("Jim C. Nasby" <jim@nasby.net>)
List pgsql-general
On Thu, Jun 12, 2003 at 17:26:11 -0500,
  "Jim C. Nasby" <jim@nasby.net> wrote:
> On Thu, Jun 12, 2003 at 12:08:15PM +0800, Ang Chin Han wrote:
>
> This becomes really important whenever pgsql gains the ability to use
> multiple indexes per table (someone smack me if it can do this now and I

SMACK!

> don't realize it), because then you could do something like
>
> SELECT min(a), max(b), min(c), min(d)
>
> and the query would be blazing fast if you had the right indexes on all
> 4 fields.

And you can speed this up now using subselects.

pgsql-general by date:

Previous
From: Dennis Gearon
Date:
Subject: Re: How can I insert a UTF-8 character with psql?
Next
From: Lamar Owen
Date:
Subject: Re: [HACKERS] SAP and MySQL ... [and Benchmark]