Re: Faster pg_resore with autovacuum off?

From: Scott Ribe <scott_ribe(at)elevated-dev(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Faster pg_resore with autovacuum off?
Date: 2024-07-27 20:05:52
Message-ID: 154A742E-51A3-4A56-A570-65B9E6A14A4D@elevated-dev.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On Jul 27, 2024, at 1:48 PM, Ron Johnson <ronljohnsonjr(at)gmail(dot)com> wrote:
>
> You can't forget to enable autovacuum when it's in the same script as the pg_restore.

Similar argument applies to turning off fsync, which I have found to sometimes make a significant difference (depending on hardware).

The other argument I've seen, that if there's a crash during restore you'll have a corrupted database, is bogus. What are you going to try to do with a database if there's a crash during restore???

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Ron Johnson 2024-07-27 20:24:45 Re: Faster pg_resore with autovacuum off?
Previous Message Ron Johnson 2024-07-27 19:48:17 Re: Faster pg_resore with autovacuum off?