Search Postgresql Archives

Re: Unexpected behavior sorting strings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Jimmy Thrasher" <jimmy@xxxxxxxxxxxxxxxxx> writes:
> As I understand it, postgresql sorts strings roughly like strcmp does: character by character based on encoding value.

Only if you're using C locale.  Other locales such as en_US have
completely different rules, which most hackers tend to find pretty
unintelligible and inconsistent :-(.  In your example, I think
the first-pass sort is on just the letters, and only if those are
the same will it consider the punctuation.

			regards, tom lane






[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux