Re: [PERFORM] finding a max value

Поиск
Список
Период
Сортировка
От Rosser Schwarz
Тема Re: [PERFORM] finding a max value
Дата
Msg-id 37d451f704070713271da13629@mail.gmail.com
обсуждение исходный текст
Список pgsql-admin
On Fri, 02 Jul 2004 20:50:26 +0200, Edoardo Ceccarelli <eddy@expot.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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Michael Adler
Дата:
Сообщение: Re: Problems upgrading to 7.4
Следующее
От: Werner Bohl
Дата:
Сообщение: DB error recovery