From: | Rosser Schwarz <rosser(dot)schwarz(at)gmail(dot)com> |
---|---|
To: | Edoardo Ceccarelli <eddy(at)expot(dot)it> |
Cc: | pgsql-performance(at)postgresql(dot)org, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: [PERFORM] finding a max value |
Date: | 2004-07-07 20:27:19 |
Message-ID: | 37d451f704070713271da13629@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-bugs pgsql-performance |
On Fri, 02 Jul 2004 20:50:26 +0200, Edoardo Ceccarelli <eddy(at)expot(dot)it> wrote:
> This is the query:
> select max(KA) from annuncio
> wasn't supposed to do an index scan? it takes about 1sec to get the result.
> TIP 5: Have you checked our extensive FAQ?
I believe this is a FAQ.
See: http://www.postgresql.org/docs/faqs/FAQ.html#4.8
Try "select KA from annuncio order by KA desc limit 1;"
/rls
--
:wq
From | Date | Subject | |
---|---|---|---|
Next Message | Werner Bohl | 2004-07-07 21:43:51 | DB error recovery |
Previous Message | James Antill | 2004-07-07 19:29:58 | Re: finding a max value |
From | Date | Subject | |
---|---|---|---|
Next Message | Dana Hudes | 2004-07-08 04:29:38 | case sensitive identifiers in 7.3.4 |
Previous Message | Stephan Szabo | 2004-07-07 19:41:37 | Re: Can't join on null values |
From | Date | Subject | |
---|---|---|---|
Next Message | Joel McGraw | 2004-07-07 21:27:27 | query plan wierdness? |
Previous Message | James Antill | 2004-07-07 19:29:58 | Re: finding a max value |