Anyone had success using a specific locale for a PostgreSQL database so that text comparison is case-insensitive?
I'm developing an app in Rails on OS X using PostgreSQL 8.4. I need to setup the database for the app so that standard text queries are case-insensitive. For example: SELECT * FROM documents WHERE title = 'incredible document' should return the same result as: SELECT * FROM documents WHERE title = 'Incredible Document' Just to be clear, I don't want to use: (1) LIKE in the where clause or any other type of special comparison operators (2) citext for the column datatype or any other special column index (3) any type of full-text software like Sphinx What I do want is to set the database locale