pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Regina <lr@pcorp.us>
To: pgsql-bugs@postgresql.org
Subject: BUG #6053: Can't do DISTINCT on citext column
Date: Sun, 5 Jun 2011 19:22:07 GMT
Message-ID: <201106051922.p55JM7RF016044@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      6053
Logged by:          Regina
Email address:      lr@pcorp.us
PostgreSQL version: 9.1beta1
Operating system:   Windows
Description:        Can't do DISTINCT on citext column
Details: 

I have a table I created like this:
-- With and without the COLLATE in there I get the same error.

 CREATE TABLE test
(
  fullname citext COLLATE pg_catalog."POSIX",
);

INSERT INTO  test(fullname) VALUES('test1'),('test2');

When I do a:
SELECT DISTINCT fullname FROM test;

or a

SELECT DISTINCT fullname COLLATE pg_catalog."POSIX" FROM test;


It gives error:

ERROR:  could not determine which collation to use for lower() function
HINT:  Use the COLLATE clause to set the collation explicitly.



view thread (2+ messages)  latest in thread

Message-ID: <201106051922.p55JM7RF016044@wwwmaster.postgresql.org>
Permalink:  ../201106051922.p55JM7RF016044@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201106051922.p55JM7RF016044@wwwmaster.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: lr@pcorp.us
  Subject: Re: BUG #6053: Can't do DISTINCT on citext column
  In-Reply-To: <201106051922.p55JM7RF016044@wwwmaster.postgresql.org>
  References: <201106051922.p55JM7RF016044@wwwmaster.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox