[ADMIN] Restoring From Backups - Mailing list pgsql-admin

From Harold Falkmeyer
Subject [ADMIN] Restoring From Backups
Date
Msg-id CACcYriu4d8am_8nso7m94V4=8MG+_cmk1Lo=t0NHJ4m6odEknA@mail.gmail.com
Whole thread Raw
Responses Re: [ADMIN] Restoring From Backups  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Greetings,

Three'ish more questions:

When restoring a table from backup (using pg_dump and pg_restore), are there reasons, other than restoration performance, to defer index restoration until after the COPY is complete?

After completing a COPY into a fresh table, is there any benefit to running a subsequent VACUUM (given that there shouldn't be any dead tuples)?

As we understand it, an ANALYZE is necessary, regardless if we restore to a table with preexisting indexes or one that's had indexes added after the fact.  Is this correct?  Put slightly a different way, do CREATE INDEX and/or REINDEX operations cause stats updates?

Thank you in advance,

Harold Falkmeyer

pgsql-admin by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: [ADMIN] How to build a distributed pg-10.0 cluster
Next
From: Tom Lane
Date:
Subject: Re: [ADMIN] Restoring From Backups