Re: weird GROUPING SETS and ORDER BY behaviour

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: weird GROUPING SETS and ORDER BY behaviour
Дата
Msg-id CAKFQuwZrbWzSiiL2wpY-+E4fOhZ9Fq0gsGS=MQxm6P9XajsYgQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: weird GROUPING SETS and ORDER BY behaviour  (Geoff Winkless <pgsqladmin@geoff.dj>)
Список pgsql-hackers
On Monday, January 8, 2024, Geoff Winkless <pgsqladmin@geoff.dj> wrote

Mildly interesting: you can pass column positions to GROUP BY and
ORDER BY but if you try to pass a position to GROUPING() (I wondered
if that would help the engine somehow) it fails:

The symbol 1 is ambigious - it can be the number or a column reference.  In a compound expression it is always the number, not the column reference.

David J.

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

Предыдущее
От: Mark Dilger
Дата:
Сообщение: Re: Escape output of pg_amcheck test
Следующее
От: Aleksander Alekseev
Дата:
Сообщение: Re: Escape output of pg_amcheck test