Re: Restore rather than rebuild index ?

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <pgsql-admin(at)postgresql(dot)org>,"A J" <s5aly(at)yahoo(dot)com>
Subject: Re: Restore rather than rebuild index ?
Date: 2010-10-06 20:53:46
Message-ID: 4CAC9B8A02000025000365DD@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

A J <s5aly(at)yahoo(dot)com> 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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2010-10-06 21:49:55 Re: Prepared statement and pgbouncer
Previous Message Palaniappan Thiyagarajan 2010-10-06 20:33:35 Prepared statement and pgbouncer