Обсуждение: BUG #15970: Db initialization error - initdb.exe and postgres not same version

Поиск
Список
Период
Сортировка

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

От
PG Bug reporting form
Дата:
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.