Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cjUCx-0000du-DK for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Mar 2017 17:08:03 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cjUCw-00074D-Qy for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Mar 2017 17:08:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cjUCF-0005p6-DE for pgsql-bugs@postgresql.org; Thu, 02 Mar 2017 17:07:19 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cjUC8-0000wG-PR for pgsql-bugs@postgresql.org; Thu, 02 Mar 2017 17:07:18 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v22H78JE017394; Thu, 2 Mar 2017 12:07:09 -0500 From: Tom Lane To: Paul.Weiler@itdz-berlin.de cc: pgsql-bugs@postgresql.org Subject: Re: Error with Softlinks after using pg_upgrade In-reply-to: <184BA296A01F13429370916F47BFCD571541A93C@ITSEX203.its.verwalt-berlin.de> References: <184BA296A01F13429370916F47BFCD571541A93C@ITSEX203.its.verwalt-berlin.de> Comments: In-reply-to message dated "Thu, 02 Mar 2017 09:12:52 +0000" Date: Thu, 02 Mar 2017 12:07:07 -0500 Message-ID: <2519.1488474427@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org writes: > as far as I can see, I found a bug with the tool pg_upgrade under PostgreSQL 9.6.2. After upgrading from Version 9.5.3 to 9.6.2 I still couldn't start the database with the normal command pg_ctl start. > ... > Only after using the path /usr/pgsql-9.6/bin/pg_ctl start it worked correctly. As far as I could find out, it's a problem with a softlink. The softlink pgsql-pg_ctl shows still to "/usr/pgsql-9.5/bin/pg_ctl". The faulty softlink is located in /etc/alternatives. pg_upgrade, per se, doesn't and cannot know about such things --- /etc/alternatives is a platform-specific concept and any symlinks placed there must have been created by a platform-specific packaging of Postgres. I expect that the packager provided some upgrade instructions that would involve running pg_upgrade as one step. Try looking into whatever README or similar files were included in your Postgres RPMs. If you were following a package-specific upgrade recipe, then this is a bug in the recipe --- but you'd need to report it to the packager, not to the PG project. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs