Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sYIh2-00AOD9-Jy for pgsql-admin@arkaria.postgresql.org; Mon, 29 Jul 2024 05:13:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1sYIh0-00FBCu-9O for pgsql-admin@arkaria.postgresql.org; Mon, 29 Jul 2024 05:13:06 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sYIgz-00FBCm-QF for pgsql-admin@lists.postgresql.org; Mon, 29 Jul 2024 05:13:05 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1sYIgw-001yni-VX for pgsql-admin@postgresql.org; Mon, 29 Jul 2024 05:13:04 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-428119da952so12582015e9.0 for ; Sun, 28 Jul 2024 22:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20230601.gappssmtp.com; s=20230601; t=1722229981; x=1722834781; darn=postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:from:to:cc:subject:date :message-id:reply-to; bh=KqFo4qKhwPwtwbDnsS5xsO9qxKZfuXEMjHrLUjyvWfA=; b=Jyu+H6WhJkL6vLP5EES7HSw+1LpNE5u7ZyWPPqB9CEMJNmZfgFoJIuTCOZWDPGxdbL tCbI8c16ITuqlln3D+vj4XZyWwSgLiqbLlCL4zbYOA6Q/mfrZRYbEunLV1b0Uq/7ByHz sjzNYHEBXtNbOsZe05ctWsXNN/YLAx5aRJUOHzU2p2JmEmbtUzYI+pHLZcVA/hr0jcs2 qVUplC5xT+wxOY1L9vKYtW4rIrbc2Alc+zv919O9LamH1Zwa9mPoiM1QvzBA69l31mMv FTsma0kj5BvGVtYaaPVWRzfcxnvI3OQfEQfwt04jCPN21+wBiXyYo8crmEzPq8nXY0Va KG+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722229981; x=1722834781; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:to:from:subject:message-id:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KqFo4qKhwPwtwbDnsS5xsO9qxKZfuXEMjHrLUjyvWfA=; b=S+nkLsPQx3gywuVgVrjLXxwPeUh4Y93W5GP9XYgQthb9jwJI3Iij4m8MYrrq2TQGVD Q6ee4cxlwQvwwyXRZ//6PLS3/98DTYuKdVnRqg8J2hsyhsu/p92sire7y/Eyu/xEBZNV DnaPRYur99I3fWIEtjtaDWscDcfh97JnbnNXMvBNCFzPnlgEtc/5D9dPDFFEPEIZkbmV lqQlfphtoli32HY2XqOVw5tDak1A2vGiUgP8g50NicWMahnITR92XRwXZ8Bjym6I2mfx MgC5Ybdszv8bMvzUAFdHIt2+xOEuoGG4XrKoRCdpJxGb4+THtILQmBxby0lkCMLO0VdR REWw== X-Forwarded-Encrypted: i=1; AJvYcCWcFQuHyQcqmQ5ZZzi+e23KnioI8x8fdxDO5R6QIY0e2ztzGNPE6Ic677FtQ7LKuFFamH5z0Te2TXGd4S0wAPQcqdKogsQ6RvtrwA== X-Gm-Message-State: AOJu0YzR65sYyJf2HbUIIFyK5K0m45yRo3AZC623fEFPAzVDl8SwdJPw gi17mtG5GDpIdlw/tqfnMOa+UFOy/Vf+uc9hmMQUpMXZmRmuyyBTElY1/7ZmBFTLhBfevznYIE0 l X-Google-Smtp-Source: AGHT+IE1Om+Bjw9Cp6vuswjQJhZN8G3r9ZeEhmlrChkZ8YDGDY4QpxYHrVM6hoaDlDWhNEhF4W9LuA== X-Received: by 2002:a05:600c:474f:b0:426:6389:94c4 with SMTP id 5b1f17b1804b1-42811e12ca5mr33854025e9.37.1722229980918; Sun, 28 Jul 2024 22:13:00 -0700 (PDT) Received: from dynamic-pd01.res.v6.highway.a1.net ([2001:871:260:9ad0:bc47:3595:10ea:60df]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-36b367c02casm11190465f8f.15.2024.07.28.22.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Jul 2024 22:13:00 -0700 (PDT) Message-ID: <266b4d9fc888a5e56b373f31d35558ecc972c56c.camel@cybertec.at> Subject: Re: Faster pg_resore with autovacuum off? From: Laurenz Albe To: Ron Johnson , pgsql-admin Date: Mon, 29 Jul 2024 07:12:59 +0200 In-Reply-To: References: <4ecf57eb54f6d457357e3882c6e9b0e6eb89aa1b.camel@cybertec.at> <154A742E-51A3-4A56-A570-65B9E6A14A4D@elevated-dev.com> <7BF8F034-1633-4FA5-90ED-6DF8F1F53D3C@elevated-dev.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.3 (3.52.3-1.fc40) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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