I code on a Windows machine but use a Linux machine in production.
The PostgreSQL lc_collate and lc_ctype are OS-dependent, which presents a few problems.
When I create a database (e.g. create database db with encoding 'UTF8' lc_collate 'en_US.UTF-8' lc_ctype 'en_US.UTF-8'), I have to detect the OS and specify the appropriate values, which is troublesome.
The biggest problem is when copying the production database to the development machine using pg_dump and pg_restore. There is no easy way to replace these values when dumping/restoring.
What is the best way to workaround these problems?