more performance on some aggregates - Mailing list pgsql-admin

From Peter Vazsonyi
Subject more performance on some aggregates
Date
Msg-id Pine.LNX.4.10.10002231231330.5159-100000@kredit.sth.szif.hu
Whole thread Raw
List pgsql-admin
I've created a table, and index.
Table    = test
+----------------------------+----------------------------+-------+
|           Field            |           Type             | Length|
+----------------------------+----------------------------+-------+
| a                          | int4                       |     4 |
| c                          | varchar                    |    40 |
+----------------------------+----------------------------+-------+
Index:    _test_a
if i need the max or min value of column a i can get with
SELECT max(test.a); query.
If i take look on the query tree:
Aggregate  (cost=43.00 rows=1000 width=4)
  ->  Seq Scan on test  (cost=43.00 rows=1000 width=4)
...
Ok, i understand: all type of the aggregates work on same way, but...
have i any chance to get extrem values, without seq scan?

Thanx in advice

--
 nek;(


pgsql-admin by date:

Previous
From: "ty"
Date:
Subject: buffer & number of backends problem 6.5.3
Next
From: "Steven Pennie"
Date:
Subject: Developing a Schema