From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: benjamin.roswall@se.com
Subject: BUG #15970: Db initialization error - initdb.exe and postgres not same version
Date: Tue, 20 Aug 2019 17:51:37 +0000
Message-ID: <15970-8658025150401043@postgresql.org> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: noreply@postgresql.org, benjamin.roswall@se.com
Subject: Re: BUG #15970: Db initialization error - initdb.exe and postgres not same version
In-Reply-To: <15970-8658025150401043@postgresql.org>
References: <15970-8658025150401043@postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox