On Wed, 2 Jun 2004 [EMAIL PROTECTED] wrote: > Is it me or has the default locale of created databases change at some point? > > Currently, on Linux, if one does not specify a locale, the locale is taken > from the system environment and it is not "C." > > While I can both sides of a discussion, I think that choosing a "locale" > without one being specified is a bad idea, even if it is the locale of the > machine. The reason why it is a bad idea is that certain features of the > database which only work correctly with a locale of "C" will not work by > default.
The same is true with not taking the locale. Other unix applications will sort "correctly" without additional work, but PostgreSQL will not. The LIKE optimization can be "fixed" in recent versions by adding an index and leaving the locale, but getting correct sorting is going to require a reinitdb. ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])