Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6V7d-0001jP-H6 for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Feb 2013 23:55:17 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1U6V7c-000732-TO for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Feb 2013 23:55:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6V7c-00072w-10 for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 23:55:16 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1U6V7Y-0001mW-LU for pgsql-bugs@postgresql.org; Fri, 15 Feb 2013 23:55:15 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id r1FNt4908912 for ; Fri, 15 Feb 2013 15:55:04 -0800 Message-ID: <511ECAD6.9090009@hogranch.com> Date: Fri, 15 Feb 2013 15:55:02 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: pgsql-bugs@postgresql.org Subject: Re: BUG #7884: pg_upgradecluster is terribly slow References: <1360952867.24218.YahooMailNeo@web162903.mail.bf1.yahoo.com> In-Reply-To: <1360952867.24218.YahooMailNeo@web162903.mail.bf1.yahoo.com> Content-Type: multipart/alternative; boundary="------------010703070600060809000404" X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean 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 This is a multi-part message in MIME format. --------------010703070600060809000404 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 -- john r pierce 37N 122W somewhere on the middle of the left coast --------------010703070600060809000404 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
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



-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast
--------------010703070600060809000404--