Re: Faster pg_resore with autovacuum off?

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Faster pg_resore with autovacuum off?
Date: 2024-07-28 20:55:28
Message-ID: CANzqJaDSZpGU-huoOTZnntaPBK+urn531k-MZOGMbdtL6u52yA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

It's obvious why un*analyzed* tables could cause materialization to be
slow, but why would un*vacuumed* tables cause slowness when creating
materialized views?

Also, how can you be sure that the underlying tables have been analyzed
before pg_restore gets to the CREATE MATERIALIZED VIEW statements?

On Sun, Jul 28, 2024 at 12:36 PM Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
wrote:

> fwiw, we have a lot of materialized views, so restoring a DB on
> non-vacuumed tables caused the materialization to take a lot longer than it
> would have with autovacuum running as normal. Seems worth experimenting
> though.
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Brock Henry 2024-07-29 00:48:29 Re: Stream pg_dumpall directly from CentOS7 to Red Hat server
Previous Message Wasim Devale 2024-07-28 17:00:28 Re: Stream pg_dumpall directly from CentOS7 to Red Hat server