pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Regina <lr@pcorp.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6053: Can't do DISTINCT on citext column
Date: Thu, 16 Jun 2011 15:42:26 -0400
Message-ID: <BANLkTintSZnLactv4dDrJs1BAXyt2ugeFQ@mail.gmail.com> (raw)
In-Reply-To: <201106051922.p55JM7RF016044@wwwmaster.postgresql.org>
References: <201106051922.p55JM7RF016044@wwwmaster.postgresql.org>

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



view thread (2+ messages)

Message-ID: <BANLkTintSZnLactv4dDrJs1BAXyt2ugeFQ@mail.gmail.com>
Permalink:  ../BANLkTintSZnLactv4dDrJs1BAXyt2ugeFQ@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTintSZnLactv4dDrJs1BAXyt2ugeFQ@mail.gmail.com

 · 

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: robertmhaas@gmail.com, lr@pcorp.us
  Subject: Re: BUG #6053: Can't do DISTINCT on citext column
  In-Reply-To: <BANLkTintSZnLactv4dDrJs1BAXyt2ugeFQ@mail.gmail.com>
  References: <201106051922.p55JM7RF016044@wwwmaster.postgresql.org> <BANLkTintSZnLactv4dDrJs1BAXyt2ugeFQ@mail.gmail.com>

* 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