BUG #15970: Db initialization error - initdb.exe and postgres not same version - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #15970: Db initialization error - initdb.exe and postgres not same version
Date
Msg-id 15970-8658025150401043@postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      15970
Logged by:          Benjamin Roswall
Email address:      benjamin.roswall@se.com
PostgreSQL version: 11.5
Operating system:   Windows 10
Description:

When running the installer, the locale is not match/found by "postgres". I
assume that's why the match of versions between initdb.exe and postgres
fails.

Any idea how to get around that?

C:\Program Files\PostgreSQL\11\bin>initdb.exe -V
initdb (PostgreSQL) 11.5

C:\Program Files\PostgreSQL\11\bin>postgres -V
WARNING:  01000: could not determine encoding for locale
"English_Sweden.utf8": codeset is "CPutf8"
LOCATION:  pg_get_encoding_from_locale,
d:\pginstaller.auto\postgres.windows-x64\src\port\chklocale.c:416
postgres (PostgreSQL) 11.5

C:\Program Files\PostgreSQL\11\bin>initdb -D "C:\Program
Files\PostgreSQL\11\data" --encoding=UTF8 --locale=sv_SE
The program "postgres" was found by "C:\Program
Files\PostgreSQL\11\bin/initdb"
but was not the same version as initdb.
Check your installation.


pgsql-bugs by date:

Previous
From: Andres Freund
Date:
Subject: Re: BUG #15969: PG12 b3 with LLVM JIT can't load library llvmjit.so:unresolvd symbol llvm::fatal_error_handler
Next
From: Michael Paquier
Date:
Subject: Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclaredidentifier 'FD_SETSIZE'