Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a0sRf-00054n-0A for pgsql-admin@arkaria.postgresql.org; Mon, 23 Nov 2015 14:50:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a0sRe-0006GO-CG for pgsql-admin@arkaria.postgresql.org; Mon, 23 Nov 2015 14:50:18 +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 1a0sRd-0006G3-Rz for pgsql-admin@postgresql.org; Mon, 23 Nov 2015 14:50:18 +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 1a0sRb-0001PA-Df for pgsql-admin@postgresql.org; Mon, 23 Nov 2015 14:50:16 +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 tANEoDNA001826; Mon, 23 Nov 2015 09:50:13 -0500 From: Tom Lane To: "Campbell, Lance" cc: "'pgsql-admin@postgresql.org'" Subject: Re: pg_restore new parameter request In-reply-to: References: Comments: In-reply-to "Campbell, Lance" message dated "Mon, 23 Nov 2015 14:37:08 +0000" Date: Mon, 23 Nov 2015 09:50:13 -0500 Message-ID: <1825.1448290213@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org "Campbell, Lance" writes: > PostgreSQL pg_restore new feature request > I did some testing last week to see how fast I could get pg_restore to reload data. I found some settings that made a significant speed boost. One request I have is the addition of two parameters to pg_restore. > --no-indexes > When this parameter is used during a full restore of a database the indexes would not be applied. > --only-indexes > When this parameter is selected during a full restore of a database only the indexes would be applied. This seems fairly redundant with the existing notion of "dump sections". Have you experimented with "--section=post-data"? regards, tom lane -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin