Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true
Дата
Msg-id CAB7nPqT-73CCO-1WnrTa51iNpBdsUmQs_5ADmVkPBWM+oRu76A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true  (Marti Raudsepp <marti@juffo.org>)
Ответы Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true
Список pgsql-bugs
On Tue, Nov 11, 2014 at 4:37 PM, Marti Raudsepp <marti@juffo.org> wrote:
> Why? This page explains in what order the expressions in a SELECT
> query are processed. Aggregates can only be found in SELECT queries
> and their semantics are non-trivial, so it seems like a big omission
> to me that their relation to other clauses is not discussed.
>
> I think that's the most appropriate place for that, because GROUP BY,
> HAVING and aggregates are closely related. And their execution occurs
> after evaluating GROUP BY keys and before HAVING predicates, where
> else would one put it?
Ah, OK. I wasn't aware of this execution order. Now we could as well
split the description flow into more tiny paragraphs but this does not
seem worth it. So what about the attached then?
--
Michael

Вложения

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

Предыдущее
От: Marti Raudsepp
Дата:
Сообщение: Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true
Следующее
От: Marti Raudsepp
Дата:
Сообщение: Re: [DOCS] BUG #11661: CASE ELSE is evaluated although condition is true