brew postgresql-upgrade-database fails because
initdb is creating a database with en_US, instead of my locale.
The database cluster will be initialized with locale “en_US.UTF-8”.
The default database encoding has accordingly been set to “UTF8”.
The default text search configuration will be set to “english”.
Causing this error:
lc_collate values for database “postgres” do not match: old “nl_BE.UTF-8”, new “en_US.UTF-8”
I had to change the script and add
--locale nl_BE.UTF-8 to the initdb line.