Re: Using indexes for ORDER BY and PARTITION BY clause in windowing functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Using indexes for ORDER BY and PARTITION BY clause in windowing functions
Дата
Msg-id 28218.1382540289@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Using indexes for ORDER BY and PARTITION BY clause in windowing functions  (Sameer Kumar <sameer.kumar@ashnik.com>)
Ответы Re: Using indexes for ORDER BY and PARTITION BY clause in windowing functions  (Sameer Kumar <sameer.kumar@ashnik.com>)
Список pgsql-hackers
Sameer Kumar <sameer.kumar@ashnik.com> writes:
> I am not sure why but my PostgreSQL does not seem to be using indexes for
> ORDER BY clause or PARTITION BY CLAUSE which I use with windowing function.

When the entire contents of the table have to be read, a seqscan-and-sort
will frequently be estimated as cheaper than an indexscan.  If you think
this is not true on your hardware, you might need to adjust
random_page_cost.
        regards, tom lane



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Sigh, my old HPUX box is totally broken by DSM patch
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: Sigh, my old HPUX box is totally broken by DSM patch