-1

I've deployed my RoR app into heroku and I'm trying to understand why a table when ordered alphabetically is case sensitive on my development environment and case insensitive on production environment.

Is this related to some difference in the configuration file of each environment, or is because I'm using sqlite in development env and postgresql in production?

Or due to something else?

Thanks.

xaxeu
  • 1
  • 1

1 Answers1

1

Sort order in PostgreSQL is defined by the locale settings. Start by reading the manual here:

22.1. Locale Support

Normally, Postgres sort order is case sensitive. I don't know of a "case insensitive" locale. There is the data type citext, but you would know if you are using that.

Sort order in SQLite is not necessarily the same. Never develop with a different RDBMS than you use in production. You are not the first to run into problems with this approach:

Community
  • 1
  • 1
Erwin Brandstetter
  • 605,456
  • 145
  • 1,078
  • 1,228