Closed lucasmirloup closed 5 months ago
Cc @franck-lephare @jeremytirel @thislg @pierreboissinot @caillaudv
@lucasmirloup let's add a server requirement AND db requirement.
We should add these requirements to each checklist.
I think fr_FR.UTF-8 is fine, but en_US.UTF-8 is also acceptable.
@thislg @lucasmirloup , @MorganVERNIERS assigned.
@MorganVERNIERS 3 checks:
note: the database server may be on a different server thant php-fpm
Problem
We discovered that several of our servers' PostgreSQL sort values in a case-sensitive manner, like this :
when we would like them to sort these values case-insensitively, like this :
Explanation
These servers' locale have not been configured, and are using a default locale (
C
for example).At the creation of a PostgreSQL database, if no default collation is provided, the server's locale is used instead. If the server's locale uses case-sensitive sorting, like the
C
locale for example, PostgreSQL will sort values in a case-sensitive manner.Once the database is created, the only way to change it is to re-create a new database using another collation, or to set the collation on each column using ALTER TABLE.
Solution
Add to the Faros requirements :
fr_FR
collation (for example) AND/ORfr_FR.UTF-8
(for example)