Re: Function call order dependency

Поиск
Список
Период
Сортировка
От Stephen R. van den Berg
Тема Re: Function call order dependency
Дата
Msg-id 20080903150801.GA9761@cuci.nl
обсуждение исходный текст
Ответ на Function call order dependency  (pgsql@mohawksoft.com)
Список pgsql-hackers
pgsql@mohawksoft.com wrote:
>Would it be something like: "where" clause first, left to right, followed
>by select terms, left to right, and lastly the "order by" clause?

I don't know what ANSI says, nor do I know what PostgreSQL exactly does
at the moment, but, the only thing you can reasonably count on is that
the WHERE clause is evaluated before the SELECT-result-rows and the
ORDER BY clause (in any SQL database).

You cannot depend on any left to right order, and you cannot depend on
ORDER BY being evaluated after the SELECT-result-rows.
-- 
Sincerely,          Stephen R. van den Berg.

"<Clarions sounding> *No one* expects the Spanish inquisition!"


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Function call order dependency
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [PATCH] Cleanup of GUC units code