Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpw1K-0004a4-8n for pgsql-general@arkaria.postgresql.org; Tue, 23 Jul 2019 14:44:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hpw1J-0002cm-4T for pgsql-general@arkaria.postgresql.org; Tue, 23 Jul 2019 14:44:01 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hpw1I-0002cC-OE for pgsql-general@lists.postgresql.org; Tue, 23 Jul 2019 14:44:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1hpw1G-0001s8-FA for pgsql-general@lists.postgresql.org; Tue, 23 Jul 2019 14:43:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x6NEhrxS026964; Tue, 23 Jul 2019 10:43:53 -0400 From: Tom Lane To: Adrian Klaver cc: Perumal Raj , Luca Ferrari , "pgsql-generallists.postgresql.org" Subject: Re: pg_upgrade : 9.X to 11.X issue CentoOS 7.6 In-reply-to: References: Comments: In-reply-to Adrian Klaver message dated "Tue, 23 Jul 2019 07:30:11 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <26962.1563893033.1@sss.pgh.pa.us> Date: Tue, 23 Jul 2019 10:43:53 -0400 Message-ID: <26963.1563893033@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Adrian Klaver 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