COUNT(Distinct city) HELP!!! - Mailing list pgsql-hackers

From Abe
Subject COUNT(Distinct city) HELP!!!
Date
Msg-id 001001c06ec8$36bec380$6500a8c0@win2k
Whole thread Raw
Responses Re: [GENERAL] COUNT(Distinct city) HELP!!!
List pgsql-hackers
Hey there,
 
I get this error but I think this is supposed to work:
 
The table has some duplicates such as Munich I want the number of distinct cities:
 
abenew=> select * from ct;
name|    age|    city
----        +---      +------
jow  |     10|     london
tim |      15|     paris
kim |     17|     munich
te   |      19|     munich
(8 rows)
 
My query is as follows:
 
tester => select count(distinct city) from ct;
ERROR:  parser: parse error at or near "distinct"
 
Any guidance would be appreciated...
Thanks
Abe

pgsql-hackers by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: Upper limit on number of buffers?
Next
From: mlw
Date:
Subject: Re: COUNT(Distinct city) HELP!!!