agora inbox for pgsql-admin@postgresql.org  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: Ron Johnson <ronljohnsonjr@gmail.com>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: Faster pg_resore with autovacuum off?
Date: Mon, 29 Jul 2024 07:12:59 +0200
Message-ID: <266b4d9fc888a5e56b373f31d35558ecc972c56c.camel@cybertec.at> (raw)
In-Reply-To: <CANzqJaDSZpGU-huoOTZnntaPBK+urn531k-MZOGMbdtL6u52yA@mail.gmail.com>
References: <CAOC+FBXP+xQ5fXbqpS-JTKq1D90DSxd+Vzz+UYDF0mfq1bVvRQ@mail.gmail.com>
	<4ecf57eb54f6d457357e3882c6e9b0e6eb89aa1b.camel@cybertec.at>
	<CANzqJaC7WgnV74NnLraw_2siNFa6Jkb2d+S7Y9nucAxJpZnaeA@mail.gmail.com>
	<154A742E-51A3-4A56-A570-65B9E6A14A4D@elevated-dev.com>
	<e8a5593d5310ea187aaf213e7a5791127c304308.camel@cybertec.at>
	<7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com>
	<CAOC+FBV9i9n50JmcJUvtGkPWXcXjgemw==qnufxeca8k6DSQ=Q@mail.gmail.com>
	<CANzqJaDSZpGU-huoOTZnntaPBK+urn531k-MZOGMbdtL6u52yA@mail.gmail.com>

On Sun, 2024-07-28 at 16:55 -0400, Ron Johnson wrote:
> It's obvious why unanalyzed tables could cause materialization to be slow,
> but why would unvacuumed tables cause slowness when creating materialized views?

Because of missing hint bits and visibility map?
But you are right, ANALYZE is more important for query performance.

However, if you disable autovacuum, you also disable autoanalyze...

Yours,
Laurenz Albe





view thread (15+ messages)

Message-ID: <266b4d9fc888a5e56b373f31d35558ecc972c56c.camel@cybertec.at>
Permalink:  ../266b4d9fc888a5e56b373f31d35558ecc972c56c.camel@cybertec.at/
Also on:    postgresql.org/message-id/266b4d9fc888a5e56b373f31d35558ecc972c56c.camel@cybertec.at

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: laurenz.albe@cybertec.at, ronljohnsonjr@gmail.com
  Subject: Re: Faster pg_resore with autovacuum off?
  In-Reply-To: <266b4d9fc888a5e56b373f31d35558ecc972c56c.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox