Re: BUG #6270: Invalid string comparison if the string contains '+' or '-' sign.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Evgeniy Galkin" <unikoid(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6270: Invalid string comparison if the string contains '+' or '-' sign.
Date: 2011-10-25 18:13:28
Message-ID: 25980.1319566408@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Evgeniy Galkin" <unikoid(at)gmail(dot)com> writes:
> I'm trying to compare two strings which are starting with '+' and '-' signs.
> And there is some strange behaviour.

This is fairly standard if you're using a non-C locale. Try creating a
fresh database with LC_COLLATE and LC_CTYPE set to 'C'.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message bricklen 2011-10-25 19:51:28 Re: auto_explain causes cluster crash if pg_ctl reload is used (not pg_ctl restart)
Previous Message Kevin Grittner 2011-10-25 17:51:26 Re: BUG #6269: Anomaly detection