Re: Index not being used in MAX function (7.2.3)

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Index not being used in MAX function (7.2.3)
Date: 2003-06-13 15:37:46
Message-ID: 20030613153746.GC16756@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Jun 12, 2003 at 17:26:11 -0500,
"Jim C. Nasby" <jim(at)nasby(dot)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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lamar Owen 2003-06-13 16:10:58 Re: [HACKERS] SAP and MySQL ... [and Benchmark]
Previous Message Dennis Gearon 2003-06-13 15:30:40 Re: How can I insert a UTF-8 character with psql?