database encoding with index search problem

From: "wisan watcharinporn" <maccran(at)hotmail(dot)com>
To: pgsql-performance(at)postgresql(dot)org
Subject: database encoding with index search problem
Date: 2005-08-16 07:01:00
Message-ID: BAY18-F212CA0C4B432AD714E09D0BEB00@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

i have problem in database encoding with indexing

case :1
when i initdb -E win874 mydb and create database with createdb -E win874
dbname
and create table emp with index in empname field

i can select sorting name correct in thai alphabet
such select empName from emp order by empName;
but in
select empName from emp where empname like 'xxx%'
it not using index scan , it use seq scan so it may slow in find name

case :2
when i initdb mydb (use default) and create database with createdb -E win874
dbname
and create table emp with index in empname field

i can not select sorting name correct in thai alphabet
but in
select empName from emp where empname like 'xxx%'
it using index scan , very fast in find name

problem:
how can i configure database that can correct in sorting name and using
index scan in like 'xxxx%' search

using FreeBSD 5.4
postgreql 8.0.

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Sebastian Hennebrueder 2005-08-16 07:29:32 Looking for a large database for testing
Previous Message Anjan Dave 2005-08-15 20:35:05 choosing RAID level for xlogs