Re: BUG #5290: Simple loop with insert into and check to avoid duplicate values fails - Mailing list pgsql-bugs

From WildWezyr
Subject Re: BUG #5290: Simple loop with insert into and check to avoid duplicate values fails
Date
Msg-id c8959c35-c593-47d1-abe5-937acfa6c5b5@m16g2000yqc.googlegroups.com
Whole thread Raw
In response to BUG #5290: Simple loop with insert into and check to avoid duplicate values fails  ("WildWezyr" <wi.ld.we.zy.r@gmail.com>)
Responses Re: BUG #5290: Simple loop with insert into and check to avoid duplicate values fails  ("Milen A. Radev" <milen@radev.net>)
List pgsql-bugs
On Jan 21, 6:17=C2=A0pm, mi...@radev.net ("Milen A. Radev") wrote:
>
> [...]
>
> For the test I changed all regional settings to "Polish (Poland)",
> restarted the machine, created a new cluster and a new database (using
> the commands from the last mail from Heikki).
>
> A side-note: tested exactly the same function but on "Bulgarian
> (Bulgaria)" system locale and cluster and database created with
> "Bulgarian_Bulgaria.1251" locale - no errors.
>
> --
> Milen A. Radev
>

No error for Bulgarian locale might be related to absence of Bulgarian
national characters in words generated by my test code. I've put only
polish characters (=C4=85=C4=87=C4=99=C5=82=C5=84=C3=B3=C5=9B=C5=BA=C5=BC) =
- and it fails with polish collation,
but after removing polish characters - i get no error with polish
collation. I thing it may behave exactly the same for Bulgarian - to
produce errors you must modify letters to include Bulgarian chars
(line: letters varchar(255) :=3D   '=C4=85=C4=87=C4=99=C5=82=C5=84=C3=B3=C5=
=9B=C5=BA=C5=BCjklmnopqrstuvwxyz'; --<--
put these letters here).

Have you tried this?

pgsql-bugs by date:

Previous
From: Greg Stark
Date:
Subject: Re: BUG #5294: Sorts on more than just the order-by clause
Next
From: "Milen A. Radev"
Date:
Subject: Re: BUG #5290: Simple loop with insert into and check to avoid duplicate values fails