Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRMim-0000dc-Li for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Feb 2016 16:25:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRMil-0002ju-Ui for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Feb 2016 16:25:27 +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) (envelope-from ) id 1aRMil-0002jK-4w for pgsql-bugs@postgresql.org; Thu, 04 Feb 2016 16:25:27 +0000 Received: from verite.pro ([195.154.189.246] helo=genius-map.net) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aRMif-0006Nl-1r for pgsql-bugs@postgresql.org; Thu, 04 Feb 2016 16:25:26 +0000 Received: by genius-map.net (Postfix, from userid 1001) id 7966F38A1C49; Thu, 4 Feb 2016 17:25:19 +0100 (CET) Content-Type: text/plain; charset="iso-8859-15" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken From: "Daniel Verite" To: pgsql-bugs@postgresql.org In-Reply-To: <56B2DFE9.5080806@hogranch.com> Date: Thu, 04 Feb 2016 17:25:17 +0100 Message-ID: <82fb531d-69a8-4af1-b9e6-8e6922d22e62@mm> X-Mailer: Manitou v1.4.0 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 John R Pierce wrote: > I don't use Ubuntu, but the data directories shouldn't be in /etc, thats= =20 > where the powergresql.conf files are located in their wrappered=20 > systems. The data directories should be in /var/something. Yes, the data directory is presumably /var/lib/postgresql/8.4/main, or the pg_lsclusters command can be used to clear up any doubt. Besides, the pg_upgrade process is wrapped too, so what's recommended is not to use pg_upgrade directly from /usr/lib/postgresql/X.Y/... (just like any other command from these directories), but rather invoke: # pg_upgradecluster -v 9.5 8.4 main which would let the wrapper deal with data directories and other options by itself. See=20 http://manpages.ubuntu.com/manpages/trusty/man8/pg_upgradecluster.8.html If a main/9.5 cluster already exists beforehand, it should be dropped first with # pg_dropcluster --stop 9.5 main Best regards, --=20 Daniel V=E9rit=E9 PostgreSQL-powered mailer: http://www.manitou-mail.org Twitter: @DanielVerite --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs