Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aROGp-00056E-PD for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Feb 2016 18:04:43 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aROGp-00008A-Bs for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Feb 2016 18:04:43 +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 1aROGB-0006fF-R9 for pgsql-bugs@postgresql.org; Thu, 04 Feb 2016 18:04:03 +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) (envelope-from ) id 1aROG9-00005i-Ba for pgsql-bugs@postgresql.org; Thu, 04 Feb 2016 18:04:02 +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 u14I3tik022862; Thu, 4 Feb 2016 13:03:56 -0500 From: Tom Lane To: jpaul@aconex.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #13911: pg_upgrade from 8.4 to 9.5 broken In-reply-to: <20160204030603.2782.10257@wrigleys.postgresql.org> References: <20160204030603.2782.10257@wrigleys.postgresql.org> Comments: In-reply-to jpaul@aconex.com message dated "Thu, 04 Feb 2016 03:06:03 +0000" Date: Thu, 04 Feb 2016 13:03:55 -0500 Message-ID: <22861.1454609035@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) 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 jpaul@aconex.com writes: > 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" > 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 Before 9.2, pg_upgrade never worked at all for setups with config-only data directories, since it couldn't figure out where the real data directory was. Now it does work, but only if the old postmaster supports -C. 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