From: wisan watcharinporn <maccran@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: database encoding problem
Date: Sat, 13 Aug 2005 03:27:51 +0000
Message-ID: <BAY18-F15DFDF829F7EB8712EE3FFBEBF0@phx.gbl> (raw)
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.
_________________________________________________________________
Don't just search. Find. Check out the new MSN Search!
http://search.msn.com/
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: maccran@hotmail.com
Subject: Re: database encoding problem
In-Reply-To: <BAY18-F15DFDF829F7EB8712EE3FFBEBF0@phx.gbl>
References: <BAY18-F15DFDF829F7EB8712EE3FFBEBF0@phx.gbl>
* 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