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: (view raw, whole thread or download thread mbox)
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-2017 The PostgreSQL Global Development Group