Skip site navigation (1) Skip section navigation (2)

Re: BUG #2309: Wrong string comparison

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Yury Don" <yura(at)vpcit(dot)ru>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #2309: Wrong string comparison
Date: 2006-03-10 00:48:17
Message-ID: 29095.1141951697@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
"Yury Don" <yura(at)vpcit(dot)ru> writes:
> Looks like string comparison operators ignore spaces isnside of string.

It's not wrong, it's just following the rules of the locale.  You should
initdb the database with LANG=C if you want plain ASCII sorting.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2006-03-10 00:50:19
Subject: Re: BUG #2310: "ALTER TYPE name OWNER TO new_owner" not working
Previous:From: Chris HodgsonDate: 2006-03-10 00:43:59
Subject: BUG #2311: Toast table chunk_id overflow

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group