Aggregate error message

Поиск
Список
Период
Сортировка
От Vik Fearing
Тема Aggregate error message
Дата
Msg-id db1e36e8-1803-ed69-6d61-a04346a3cbff@2ndquadrant.com
обсуждение исходный текст
Ответы Re: Aggregate error message  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-hackers
With a sample query such as

SELECT x, avg(x)
FROM (VALUES (1), (2), (3)) AS v (x);

We give the error message "column "v.x" must appear in the GROUP BY
clause or be used in an aggregate function".

This is correct but incomplete.  Attached is a trivial patch to also
suggest that the user might have been trying to use a window function.
-- 
Vik Fearing                                          +33 6 46 75 15 36
http://2ndQuadrant.fr     PostgreSQL : Expertise, Formation et Support

Вложения

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

Предыдущее
От: Amit Langote
Дата:
Сообщение: Re: Should we warn against using too many partitions?
Следующее
От: David Rowley
Дата:
Сообщение: Re: Aggregate error message