Insufficient description in collation mismatch error

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Insufficient description in collation mismatch error
Дата
Msg-id BANLkTik+_5HEc+DiM7RkO575hVSQF8zO2A@mail.gmail.com
обсуждение исходный текст
Ответы Re: Insufficient description in collation mismatch error  (Thom Brown <thom@linux.com>)
Список pgadmin-hackers
Hi,

I tried applying a collation to a GROUP BY clause without applying the
collation to the corresponding column in the SELECT clause.

postgres=# SELECT things, count(*) FROM stuff GROUP BY things COLLATE "C";
ERROR:  column "stuff.things" must appear in the GROUP BY clause or be
used in an aggregate function
LINE 1: SELECT things, count(*) FROM stuff GROUP BY things COLLATE "...

Firstly, does it even make sense for a GROUP BY clause to accept COLLATE?

Even if it does, this error message doesn't explain the problem, being
that the column with the necessary collation doesn't appear in the
SELECT.

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

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

Предыдущее
От: Guillaume Lelarge
Дата:
Сообщение: Re: pgAdmin III commit: Install adminpack on user request in frmStatus
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Insufficient description in collation mismatch error