Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aRBDG-0005eg-Pe for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Feb 2016 04:08:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aRBDG-00085y-CE for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Feb 2016 04:08:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aRAGE-0007Eb-Ic for pgsql-bugs@postgresql.org; Thu, 04 Feb 2016 03:07:10 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aRAG7-0006HW-QK for pgsql-bugs@postgresql.org; Thu, 04 Feb 2016 03:07:09 +0000 MIME-Version: 1.0 Subject: BUG #13911: pg_upgrade from 8.4 to 9.5 broken To: pgsql-bugs@postgresql.org From: jpaul@aconex.com Date: Thu, 04 Feb 2016 03:06:03 +0000 Message-ID: <20160204030603.2782.10257@wrigleys.postgresql.org> X-Pg-Spam-Score: -1.9 (-) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" 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 The following bug has been logged on the website: Bug reference: 13911 Logged by: Jerome Paul Email address: jpaul@aconex.com PostgreSQL version: 9.5.0 Operating system: Ubuntu 14.04 Description: Hi, I've been attempting to run "pg_upgrade" to move data from Postgresql 8.4.22 to 9.5 The command I've been running is: /usr/lib/postgresql/9.5/bin/pg_upgrade --old-datadir '/etc/postgresql/8.4/main' --new-datadir '/etc/postgresql/9.5/main' --old-bindir '/usr/lib/postgresql/8.4/bin' --new-bindir '/usr/lib/postgresql/9.5/bin' This results in the following error within "pg_upgrade_internal.log" ----------------------------------------------------------------- pg_upgrade run on Thu Feb 4 13:30:13 2016 ----------------------------------------------------------------- Finding the real data directory for the old cluster Could not get data directory using "/usr/lib/postgresql/8.4/bin/postgres" -D "/etc/postgresql/8.4/main" -C data_directory: No such file or directory It looks like the -C option was only added to the postgres command in 9.2. The documentation for pg_upgrade states: "pg_upgrade supports upgrades from 8.4.X and later to the current major release of PostgreSQL, including snapshot and alpha releases." Is the upgrade script broken or the documentation incorrect? sincerely Jerome -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs