Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id AA3F71337B82 for ; Wed, 6 Oct 2010 17:54:11 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 00445-01 for ; Wed, 6 Oct 2010 20:54:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id C40F01337B98 for ; Wed, 6 Oct 2010 17:54:03 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 06 Oct 2010 15:53:57 -0500 Message-Id: <4CAC9B8A02000025000365DD@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 06 Oct 2010 15:53:46 -0500 From: "Kevin Grittner" To: ,"A J" Subject: Re: Restore rather than rebuild index ? References: <5674.85628.qm@web120004.mail.ne1.yahoo.com> In-Reply-To: <5674.85628.qm@web120004.mail.ne1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-4.21 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/67 X-Sequence-Number: 35808 A J wrote: > I think with pg_dump and pg_restore (or psql restore), the only > option is to rebuild the indexes. Am I right or is it possible to > backup indexes as well and restore them ? With pg_dump it is copying in rows by value, so indexes must then be built. If you use PITR backups, it is a block-by-block copy of the files, including indexes -- no index rebuild is needed for that technique. -Kevin