Re: [HACKERS] Insufficient description in collation mismatch error

2011-04-20 Thread Greg Stark
On Wed, Apr 20, 2011 at 1:37 AM, Tom Lane wrote: >> 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 CO

Re: [HACKERS] Insufficient description in collation mismatch error

2011-04-19 Thread Tom Lane
Thom Brown writes: > 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

[HACKERS] Insufficient description in collation mismatch error

2011-04-19 Thread Thom Brown
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 aggre