Re: BUG #5385: gd disallows agg function in subselect of update

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5385: gd disallows agg function in subselect of update
Дата
Msg-id 6942.1269099027@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5385: gd disallows agg function in subselect of update  (Corin <wakathane@gmail.com>)
Список pgsql-bugs
Corin <wakathane@gmail.com> writes:
> Sorry, stupid me - it's not a bug, pg is perfectly right!
> The query was just wrong, because I used the wrong column in the
> SUM(...) function.

Yah.  The reason the error message was phrased that way is that the SUM
argument is a variable of the outer query, so the aggregate is also
considered an aggregate of the outer query.

            regards, tom lane

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

Предыдущее
От: Corin
Дата:
Сообщение: Re: BUG #5385: gd disallows agg function in subselect of update
Следующее
От: Oleg K
Дата:
Сообщение: 9.0_alpha4 Planner Bug