pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stan S <ssantiago@adinfocenter.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6259: Collation Error with Citext fields
Date: Mon, 17 Oct 2011 19:26:19 -0400
Message-ID: <21435.1318893979@sss.pgh.pa.us> (raw)
In-Reply-To: <201110172135.p9HLZLZn000672@wwwmaster.postgresql.org>
References: <201110172135.p9HLZLZn000672@wwwmaster.postgresql.org>

"Stan S" <ssantiago@adinfocenter.com> writes:
> shard_1=# CREATE TABLE users (nickname CITEXT PRIMARY KEY,pass TEXT   NOT
> NULL);
> NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "users_pkey"
> for table "users"

> shard_1=# INSERT INTO users VALUES ( 'larry',  'aaa' );
> INSERT 0 1

> shard_1=# INSERT INTO users VALUES ( 'Tom',   'bbb' );
> ERROR:  could not determine which collation to use for string comparison
> HINT:  Use the COLLATE clause to set the collation explicitly.

Hmm, I can't replicate this here ...

> shard_1=# CREATE TABLE users (nickname CITEXT COLLATE "C" PRIMARY KEY,pass
TEXT   NOT NULL);
> ERROR:  collations are not supported by type citext

This suggests strongly that you're using a 9.0-or-earlier citext
installation that you've not upgraded to 9.1.  If that's the right
guess, you need to do CREATE EXTENSION citext FROM unpackaged
to fix it.

			regards, tom lane



view thread (2+ messages)

Message-ID: <21435.1318893979@sss.pgh.pa.us>
Permalink:  ../21435.1318893979@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21435.1318893979@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, ssantiago@adinfocenter.com
  Subject: Re: BUG #6259: Collation Error with Citext fields
  In-Reply-To: <21435.1318893979@sss.pgh.pa.us>
  References: <201110172135.p9HLZLZn000672@wwwmaster.postgresql.org> <21435.1318893979@sss.pgh.pa.us>

* 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