Re: ORDER BY

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: ORDER BY
Дата
Msg-id 200507271726.26317.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: ORDER BY  ("Marc G. Fournier" <scrappy@postgresql.org>)
Список pgsql-hackers
Marc,

> Basically, from how everyone has explained it, the ORDER BY will be done
> after all the JOINs are done, and the "product of the joins" are
> complete ... for it to be performed on a field not in the SELECT <field>
> clause, then those fields have to be "loaded into memory", *then*
> ORDERed, and then the query would return teh result set out of those
> "mega table" ...

Pretty much, yes.   We have to load the referenced rows anyway because 
that's the only way to locate visibility information, which is critical 
for an inner join.   

However, this discussion doesn't really belong on -hackers.  Why don't you 
bring it over to IRC?


-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Autovacuum to-do list
Следующее
От: David Fetter
Дата:
Сообщение: Re: Some new list.c primitives