pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #6053: Can't do DISTINCT on citext column
2+ messages / 2 participants
[nested] [flat]
* BUG #6053: Can't do DISTINCT on citext column
@ 2011-06-05 19:22 Regina <lr@pcorp.us>
2011-06-16 19:42 ` Re: BUG #6053: Can't do DISTINCT on citext column Robert Haas <robertmhaas@gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Regina @ 2011-06-05 19:22 UTC (permalink / raw)
To: pgsql-bugs
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #6053: Can't do DISTINCT on citext column
2011-06-05 19:22 BUG #6053: Can't do DISTINCT on citext column Regina <lr@pcorp.us>
@ 2011-06-16 19:42 ` Robert Haas <robertmhaas@gmail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Robert Haas @ 2011-06-16 19:42 UTC (permalink / raw)
To: Regina <lr@pcorp.us>; +Cc: pgsql-bugs
On Sun, Jun 5, 2011 at 3:22 PM, Regina <lr@pcorp.us> wrote:
>
> 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.
I don't see a reply to this bug report, but I believe Tom fixed it in beta2.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-06-16 19:42 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-06-05 19:22 BUG #6053: Can't do DISTINCT on citext column Regina <lr@pcorp.us>
2011-06-16 19:42 ` Robert Haas <robertmhaas@gmail.com>
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