Closed ProchaLu closed 4 weeks ago
A student just reported that this is not fixed yet on macOS, reopening:
x@Xs-MBP ~ % postgres
2024-08-01 11:32:33.536 CEST [14060] LOG: starting PostgreSQL 16.3 (Homebrew) on aarch64-apple-darwin23.4.0, compiled by Apple clang version 15.0.0 (clang-1500.3.9.4), 64-bit
2024-08-01 11:32:33.537 CEST [14060] LOG: listening on IPv6 address "::1", port 5432
2024-08-01 11:32:33.537 CEST [14060] LOG: listening on IPV4 address "127.0.0.1", port 5432
2024-08-01 11:32:33.538 CEST [14060] LOG: listening on Unix socket "/tmp/.s.PGSQL.5432"
2024-08-01 11:32:33.539 CEST [14060] FATAL: postmaster became multithreaded during startup
2024-08-01 11:32:33.539 CEST [14060] HINT: Set the LC_ALL environment variable to a valid locale.
2024-08-01 11:32:33.539 CEST [14060] LOG: database system is shut down
x@Xs-MBP ~ %
This may be related to the new changes we made in @Eprince-hub's PR:
When running
postgres
on macOS, it can happen that the PostgreSQL server throws an errorpostmaster became multithreaded during startup
with the hintSet the LC_ALL environment variable to a valid locale
if thelocale
variables are not set.To fix this issue, you can set the
default locale
variable in.zshrc