pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ulrich Wisser <liste@publisher.de>
To: pgsql-admin@postgresql.org
Subject: encoding error
Date: Tue, 13 Dec 2005 22:03:26 +0100
Message-ID: <439F371E.6030706@publisher.de> (raw)

Hello,

I try to insert some japanese text in my database. But it fails with 
duplicate value error, although I use two different values. My database 
is set up with UNICODE, I even tried a SQL_ASCII set up where I do all 
conversion manual, but nothing worked, the error persists. Please find 
the smallest possible example attached below.

I verified it in 7.4.7 and 8.1.

Any ideas welcome!

TIA

Ulrich


createdb test -E unicode

in psql:

create table kw(keyword varchar(256) primary key);

insert into kw (keyword) values 
('ã\202­ã\203£ã\203©ã\203¡ã\203«ã\202\222è³¼å\205¥ã\201\231ã\202\213');
insert into kw (keyword) values 
('ã\202¬ã\203\212ã\203\203ã\202·ã\203¥ã\202\222è³¼å\205¥ã\201\231ã\202\213');
ERROR:  duplicate key violates unique constraint "kw_pkey"




view thread (2+ messages)  latest in thread

Message-ID: <439F371E.6030706@publisher.de>
Permalink:  ../439F371E.6030706@publisher.de/
Also on:    postgresql.org/message-id/439F371E.6030706@publisher.de

 · 

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-admin@postgresql.org
  Cc: liste@publisher.de
  Subject: Re: encoding error
  In-Reply-To: <439F371E.6030706@publisher.de>
  References: <439F371E.6030706@publisher.de>

* 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