pg_dump: VACUUM and REINDEXING - Mailing list pgsql-general

From Hasan Marzooq
Subject pg_dump: VACUUM and REINDEXING
Date
Msg-id CANvhf8JViXsNYOvWEecZ_3dHq4shNFeby+W7u2jerEqnD+4Gpw@mail.gmail.com
Whole thread Raw
Responses Re: pg_dump: VACUUM and REINDEXING
Re: pg_dump: VACUUM and REINDEXING
List pgsql-general
Hello!

I've some questions around Backup & Restore.

1: Is it necessary to perform a VACUUM and REINDEXING operation after restoring the dump from Postgres 9.6 to Postgres 13? The dump size could be 1/2 TB to 1 TB.

2: Also, are there any other operations that are recommended to perform after pg_restore? 

3: What is the minimum required disk space if taking a dump on the same machine where the source database exists? Is it the "size of the current data folder x 2"?

Thanks.
Hasan



pgsql-general by date:

Previous
From: Shaozhong SHI
Date:
Subject: How to get value wrapped in json?
Next
From: Bryn Llewellyn
Date:
Subject: Re: "A transaction cannot be ended inside a block with exception handlers."