Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6VcV-0004Oi-GN for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Feb 2013 00:27:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U6VcV-0003J3-17 for pgsql-bugs@arkaria.postgresql.org; Sat, 16 Feb 2013 00:27:11 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6VcU-0003Iy-DK for pgsql-bugs@postgresql.org; Sat, 16 Feb 2013 00:27:10 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6VcT-0000RR-3P for pgsql-bugs@postgresql.org; Sat, 16 Feb 2013 00:27:09 +0000 Received: from bruce by momjian.us with local (Exim 4.72) (envelope-from ) id 1U6VcS-0000Oo-84; Fri, 15 Feb 2013 19:27:08 -0500 Date: Fri, 15 Feb 2013 19:27:08 -0500 From: Bruce Momjian To: John R Pierce Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7884: pg_upgradecluster is terribly slow Message-ID: <20130216002708.GI12030@momjian.us> References: <1360952867.24218.YahooMailNeo@web162903.mail.bf1.yahoo.com> <511ECAD6.9090009@hogranch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <511ECAD6.9090009@hogranch.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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 On Fri, Feb 15, 2013 at 03:55:02PM -0800, John R Pierce wrote: > On 2/15/2013 10:27 AM, Kevin Grittner wrote: > > You might want to try the utility which *is* supported by the > PostgreSQL community, which is pg_upgrade. For speed, consider > using the -k option. I've been able to upgrade a 3 TB database in > just a few minutes with that. (Timing depends more on the number > of database objects than their size.) > > > do note this -k option only functions if the old and new cluster are on the > same mount point, so the files can be mv'd Actually, hard linked, not moved. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. + -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs