From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dan McFadyen <danm@cryptocard.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Odd query behavior
Date: Mon, 15 Mar 2010 11:03:59 -0400
Message-ID: <18118.1268665439@sss.pgh.pa.us> (raw)
In-Reply-To: <BA48DC793F18724D862C27C8F2C131CC620A2F@exchange03.cryptocard.internal>
References: <BA48DC793F18724D862C27C8F2C131CC62094F@exchange03.cryptocard.internal>
<622.1268411385@sss.pgh.pa.us>
<BA48DC793F18724D862C27C8F2C131CC620A2F@exchange03.cryptocard.internal>
"Dan McFadyen" <danm@cryptocard.com> writes:
> You're right, the second one does use an index, one that is used to
> enforce a unique constraint on the column. I wasn't able to turn it off
> as the database is currently in use, and disabling a unique constraint
> probably isn't a good idea.
> Sorry for not mentioning the PG version, it's 8.3.
> Now, as for the LC_CTYPE, I didn't even know about such a thing till you
> mentioned it, and I found the lovely disclaimers in the postgresql docs
> about the consequences of it not being c or posix.
> It's Finnish Finland 1252. If that's the probable cause, I'm guessing
> the only option is to export, re-initdb, and import.
Oh, this is Windows huh? In principle, UTF8 encoding should work in all
locales for Windows --- at least, the code thinks so, which is why it
let you create that combination to start with. I'm not very familiar
with the possible pitfalls though. If you don't actually have any use
for Finnish-specific sorting or case-folding, a re-initdb in C locale
would probably be a good idea.
In the meantime it seems there might be a bug here. Can you give more
information about the contents of the column involved, in particular
what non-7-bit-ASCII characters it contains?
regards, tom lane
PS: please cc the list on replies.
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, danm@cryptocard.com
Subject: Re: Odd query behavior
In-Reply-To: <18118.1268665439@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