From: | Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Kevin Houle <kjh(at)cert(dot)org>, <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: UNIQUE INDEX difference between 7.2 and 7.3 |
Date: | 2003-08-12 19:53:57 |
Message-ID: | 20030812124823.S19023-100000@megazone.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Tue, 12 Aug 2003, Tom Lane wrote:
> Stephan Szabo <sszabo(at)megazone(dot)bigpanda(dot)com> writes:
> > Okay, I see it with en_US.utf-8, but not with C locale, nor with
> > en_US or en_US.iso885915. It looks like the comparison rules are
> > different between the locales (and I'm not sure if SQL_ASCII encoding
> > and a UTF8 locale makes sense in practice).
>
> I'd think not --- the byte sequence is most likely not a valid string in
> UTF8 encoding. I'm not sure what strcoll() would do when comparing
> illegal byte sequences, but failing to detect that they're different is
> certainly not too implausible.
That's what I was worried about.
> This brings up once again the question of whether initdb ought to accept
> the locale it finds in the environment. I had not realized that Red Hat
> 9 is defaulting to en_US.utf-8. That is an actively evil choice for us
> (unless we change the default database encoding to match).
That's somewhat interesting too, because my server is also RHL9,
but it appears to default accounts to en_US.iso885915. I think
there might have been a set up option relating to using UTF8 locales.
> IIRC we were about evenly split between changing or not changing
> initdb's behavior, but if this really is a typical RHL9 setup, I think
> that has got to affect the decision.
I don't know enough about the issues involved. Can we reasonably tell
that a particular locale and encoding don't make sense together (apart
from things like looking for utf-8 in the name for example)?
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2003-08-12 20:04:59 | Re: UNIQUE INDEX difference between 7.2 and 7.3 |
Previous Message | Tom Lane | 2003-08-12 19:44:28 | Re: UNIQUE INDEX difference between 7.2 and 7.3 |