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

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: benjamin(dot)roswall(at)se(dot)com
Subject: BUG #15970: Db initialization error - initdb.exe and postgres not same version
Date: 2019-08-20 17:51:37
Message-ID: 15970-8658025150401043@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 15970
Logged by: Benjamin Roswall
Email address: benjamin(dot)roswall(at)se(dot)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.

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2019-08-21 01:58:54 Re: BUG #15964: vacuumdb.c:187:10: error: use of undeclared identifier 'FD_SETSIZE'
Previous Message Andres Freund 2019-08-20 16:55:57 Re: BUG #15969: PG12 b3 with LLVM JIT can't load library llvmjit.so: unresolvd symbol llvm::fatal_error_handler