Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 2F90819CDE13 for ; Mon, 5 Dec 2011 11:35:19 -0400 (AST) Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RXaZa-0007mb-Ar for pgsql-performance@postgresql.org; Mon, 05 Dec 2011 15:35:19 +0000 Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id pB5FYsm28466; Mon, 5 Dec 2011 10:34:54 -0500 (EST) From: Bruce Momjian Message-Id: <201112051534.pB5FYsm28466@momjian.us> Subject: Re: pg_upgrade In-Reply-To: To: "Nicholson, Brad (Toronto, ON, CA)" Date: Mon, 5 Dec 2011 10:34:54 -0500 (EST) CC: Tory M Blue , "pgsql-performance@postgresql.org" , Magnus Hagander X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/31 X-Sequence-Number: 45831 Nicholson, Brad (Toronto, ON, CA) wrote: > > -----Original Message----- > > From: Bruce Momjian [mailto:bruce@momjian.us] > > Sent: Monday, December 05, 2011 10:24 AM > > To: Nicholson, Brad (Toronto, ON, CA) > > Cc: Tory M Blue; pgsql-performance@postgresql.org; Magnus Hagander > > Subject: Re: [PERFORM] pg_upgrade > > > > Nicholson, Brad (Toronto, ON, CA) wrote: > > > > You mean moving tablespaces? That isn't something pg_upgrade deals > > > > with. If we need docs to move tablespaces, it is a missing piece > > of > > > > our > > > > main docs, not something pg_upgrade would ever mention. > > > > > > If I'm reading the issue correctly, and pg_upgrade gets part way > > through > > > an upgrade then fails if it hits a tablespace - it seems to me like > > > the pg_upgrade should check for such a condition at the initial > > > validation stage not proceed if found. > > > > Checking for all such cases would make pg_upgrade huge and unusable. > > If > > you messed up your configuration, pg_upgrade can't check for every such > > case. There are thosands of ways people can mess up their > > configuration. > > Based on the OP this does not seem like a messed up configuration. It > sounds like the OP used a fully supported core feature of Postgres > (tablespaces) and pg_upgrade failed as a result. I think having our > upgrade utility fail under such circumstances is a bad thing. The OP has not indicated exactly what he did to move the tablespaces, so I have to assume he changed the SQL location but not the symbolic link location, or some other misconfiguration. Can someone provide the steps that caused the failure? pg_upgrade works fine for tablespaces so there must be something different about his configuration. Unless I hear details, I have to assume the tablespace move was done incorrectly. This is the first tablespace failure like this I have ever gotten, and I do test tablespaces. Perhaps something is wrong, but I can't guess what it is. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +