pg_dump: VACUUM and REINDEXING

From: Hasan Marzooq <engr(dot)naqvi(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: pg_dump: VACUUM and REINDEXING
Date: 2022-05-07 02:35:44
Message-ID: CANvhf8JViXsNYOvWEecZ_3dHq4shNFeby+W7u2jerEqnD+4Gpw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bryn Llewellyn 2022-05-07 02:46:26 Re: "A transaction cannot be ended inside a block with exception handlers."
Previous Message Shaozhong SHI 2022-05-07 01:54:23 How to get value wrapped in json?