Re: Indexes on NULL's and order by ... limit N queries

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Indexes on NULL's and order by ... limit N queries
Дата
Msg-id 20081201204144.GL4459@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Indexes on NULL's and order by ... limit N queries  (Maxim Boguk <mboguk@masterhost.ru>)
Ответы Re: Indexes on NULL's and order by ... limit N queries  (Maxim Boguk <mboguk@masterhost.ru>)
Список pgsql-general
Maxim Boguk wrote:
> Sorry with all my respect to you, you look like wrong.

The difference is that the plan with -1 does not need to sort the
output, because it comes sorted out of the index; so the execution can
be stopped as soon as 5 tuples have come out.  With NULL, that can't be
done.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Maxim Boguk
Дата:
Сообщение: Re: Indexes on NULL's and order by ... limit N queries
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Trigger before delete does fire before, but delete doesn't not happen