From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: Perumal Raj <perucinci@gmail.com>
Cc: Luca Ferrari <fluca1978@gmail.com>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6
Date: Tue, 23 Jul 2019 10:43:53 -0400
Message-ID: <26963.1563893033@sss.pgh.pa.us> (raw)
In-Reply-To: <bc44a6b5-82a9-8c35-7931-6b9a88fdbd5b@aklaver.com>
References: <CALvqh4qZoLyNjV8XXfrS94yzfTkY5_3Pb=N5f=W6Xm-Qf41UBQ@mail.gmail.com>
<CAKoxK+7GgCKRnZSmf7qJgbuQURDViLYNpZux4nSpQbw2oRvRdg@mail.gmail.com>
<CALvqh4r92NGA56JkWW-dvYFfTUOzZxv2g4WrBQAs2X7yCJ=h5g@mail.gmail.com>
<bc44a6b5-82a9-8c35-7931-6b9a88fdbd5b@aklaver.com>
Adrian Klaver <adrian.klaver@aklaver.com> writes:
> On 7/23/19 7:17 AM, Perumal Raj wrote:
>> command: "/usr/pgsql-9.2/bin/pg_ctl" -w -l "pg_upgrade_server.log" -D
>> "/data/db/data" -o "-p 5432 -b -c listen_addresses='' -c
>> unix_socket_permissions=0700 -c unix_socket_directory='/var/lib/pgsql'"
>> start >> "pg_upgrade_server.log" 2>&1
>> waiting for server to start....FATAL: unrecognized configuration
>> parameter "unix_socket_directory"
> Well unix_socket_directory changed to unix_socket_directories in 9.3.
Yeah, this is clearly a version-skew problem. pg_upgrade knows it
should say unix_socket_directory not unix_socket_directories to a pre-9.3
server, but that's going wrong somehow.
> Are you sure that /usr/pgsql-9.2/bin/pg_ctl is really pointing to a 9.2
> binary?
For quite some time, Red Hat shipped versions of 9.2.x that were patched
to understand unix_socket_directories not unix_socket_directory. I would
be suspicious that the source server was one of those, except that the
cited path doesn't match where the Red Hat RPMs put it.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, adrian.klaver@aklaver.com, perucinci@gmail.com, fluca1978@gmail.com
Subject: Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6
In-Reply-To: <26963.1563893033@sss.pgh.pa.us>
References: <CALvqh4qZoLyNjV8XXfrS94yzfTkY5_3Pb=N5f=W6Xm-Qf41UBQ@mail.gmail.com> <CAKoxK+7GgCKRnZSmf7qJgbuQURDViLYNpZux4nSpQbw2oRvRdg@mail.gmail.com> <CALvqh4r92NGA56JkWW-dvYFfTUOzZxv2g4WrBQAs2X7yCJ=h5g@mail.gmail.com> <bc44a6b5-82a9-8c35-7931-6b9a88fdbd5b@aklaver.com> <26963.1563893033@sss.pgh.pa.us>
* 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