"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