|
Home > Archive > PostgreSQL Bugs > February 2006 > BUG #2286: Wrong index creation with cs_CZ locales and HYPHEN
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
BUG #2286: Wrong index creation with cs_CZ locales and HYPHEN
|
|
| David Sauer 2006-02-28, 8:33 pm |
|
The following bug has been logged online:
Bug reference: 2286
Logged by: David Sauer
Email address: profa@profa.cz
PostgreSQL version: 8.1.2, 8.1.3
Operating system: Linux (libc6), debian
Description: Wrong index creation with cs_CZ locales and HYPHEN
Details:
I have table:
CREATE TABLE m (i TEXT);
CREATE INDEX myidx ON m(i);
.... INSERT about 2000 values INTO m in the form
INSERT INTO m VALUES ('some-hack-1');
INSERT INTO m VALUES ('some-hack-2');
INSERT INTO m VALUES ('some-hack-3');
INSERT INTO m VALUES ('some-hack-4');
........ approx 2000 values with 'HYPHEN' (-)
VACUUM FULL ANALYZE;
now, the query:
SELECT * FROM m WHERE i = 'some-hack-4';
finds nothing ...
but:
SELECT * FROM m WHERE i || '' = 'some-hack-4';
finds expected row (but without index use, so it is slow).
The problem is between libc6 2.3.2 and libc6 2.3.6, definition files are
stored at:
http://img.123shop.cz/gimg/Popis/a.zip
Problem is probably in libc6 locales, but postgresql developer knows more
about libc6 ... (not true in opposite direction ?)
I'am running current version of debian linux, postgres 8.1.2 or 8.1.3
compiled myself. Feel free to contact me for more details.
Thank You,
David Sauer
---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster
| |
| Tom Lane 2006-02-28, 8:33 pm |
| "David Sauer" <profa@profa.cz> writes:
> PostgreSQL version: 8.1.2, 8.1.3
> Operating system: Linux (libc6), debian
> Description: Wrong index creation with cs_CZ locales and HYPHEN
You've probably gotten bit by the 8.1.2 changes in locale-dependent
sorting. Try REINDEXing the affected indexes, as per the 8.1.2 release
notes.
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?
http://archives.postgresql.org
|
|
|
|
|