Re: [HACKERS] 6.5 beta and ORDER BY patch - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: [HACKERS] 6.5 beta and ORDER BY patch
Date
Msg-id 199902031846.NAA04692@candle.pha.pa.us
Whole thread Raw
In response to Re: [HACKERS] 6.5 beta and ORDER BY patch  (Hannu Krosing <hannu@trust.ee>)
Responses Re: [HACKERS] 6.5 beta and ORDER BY patch  (jwieck@debis.com (Jan Wieck))
List pgsql-hackers
> Next thing to attack then would be aggregates, so that they too can 
> benefit from indexes, I can immediately think of MIN, MAX and COUNT
> on simple scans. But as the aggregates are user-defined, we probably 
> need a flag that tells the optimiser if said aggregate can in fact 
> use indexes (and what type of index)
> 
> Maybe we can even cache some data (for example tuple count) in 
> backend, so that COUNT(*) can be made real fast ?
> 
> After that the reverse index scans, so that the index that are 
> backwards can also be used for sorting.
> BTW, can this be easily implemented/effective in PostgreSQL or are
> our btree indexes optimised for forward scans ?

Jan, I have kept the postings on optimizing LIMIT for joins.  Let me
know if/when you want to see them.

--  Bruce Momjian                        |  http://www.op.net/~candle maillist@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Hannu Krosing
Date:
Subject: Re: [HACKERS] 6.5 beta and ORDER BY patch
Next
From: Dmitry Samersoff
Date:
Subject: DEC OSF1 Compilation problems