From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: mvid@servoy.com
Subject: BUG #15786: Matching version issue between postgres.exe and initdb.exe
Date: Mon, 29 Apr 2019 21:46:45 +0000
Message-ID: <15786-aadc66526f039ec8@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 15786
Logged by: Marian Vid
Email address: mvid@servoy.com
PostgreSQL version: 11.2
Operating system: Windows 10 Pro x64, English version
Description:
Hello,
there is a problem related to postgresql v11.2 (the problem is not
reproducing with v10.7 nor 9.6.12). I've tested only 64 bit versions.
I've downloaded (https://www.enterprisedb.com/download-postgresql-binaries)
and unzipped three binary versions as follows:
c:\Postgresql_9.6.12\pgsql
c:\Postgresql_10.7\pgsql
c:\Postgresql 11.2\pgsql
On each path I've run the following command:
bin\initdb.exe -D test_db -E UNICODE -U DBA
On 9.6.12 and 10.7 the following (successful) output has been obtained:
"...
Success. You can now start the database server using:
"bin\pg_ctl" -D "test_db" -l logfile start
"
However, on 11.2 the following error appear:
"The program "postgres" was found by
"c:/Postgresql_11.2/pgsql/bin/initdb.exe"
but was not the same version as initdb.
Check your installation."
While checking the possible cause for this error, an issue was came up
between initdb and postgres matching versions.
On each path I've check the postgres and initdb version using
bin\postgres.exe -V
bin\initdb.exe -V
I've got:
postgres (PostgreSQL) 9.6.12 on both postgres.exe and initdb.exe - for
version 9.6.12
postgres (PostgreSQL) 10.7 on both postgres.exe and initdb.exe - for
version 10.7
postgres (PostgreSQL) 11.2 for initdb.exe - for version 11.2
But for bin\postgres.exe -V (11.2 version) I've got the following output:
WARNING: 01000: could not determine encoding for locale "English_United
States.utf8": codeset is "CPutf8"
LOCATION: pg_get_encoding_from_locale,
d:\pginstaller.auto\postgres.windows-x64\src\port\chklocale.c:416
postgres (PostgreSQL) 11.2
You may notice that there are three lines of messages, the last one being
the version.
I've tested on three different Windows 10 x64 OS, and the problem is
reproducing only on one system.
Please, provide your feedback.
Regards
Marian Vid
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, mvid@servoy.com
Subject: Re: BUG #15786: Matching version issue between postgres.exe and initdb.exe
In-Reply-To: <15786-aadc66526f039ec8@postgresql.org>
References: <15786-aadc66526f039ec8@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