Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no43y-0005RY-MY for pgsql-general@arkaria.postgresql.org; Mon, 09 May 2022 14:08:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1no43x-0002l4-I2 for pgsql-general@arkaria.postgresql.org; Mon, 09 May 2022 14:08:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no43x-0002kv-7U for pgsql-general@lists.postgresql.org; Mon, 09 May 2022 14:08:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1no43r-0000s4-BL for pgsql-general@lists.postgresql.org; Mon, 09 May 2022 14:08:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 249E8RC63742515; Mon, 9 May 2022 10:08:27 -0400 From: Tom Lane To: Laurenz Albe cc: Guillaume Lelarge , Ron , "pgsql-generallists.postgresql.org" Subject: Re: pg_dump: VACUUM and REINDEXING In-reply-to: <90e562bcf112ba3adacf1c39a160d3680d3b714d.camel@cybertec.at> References: <3336352b-f97a-86e3-585b-207a98f56d4d@gmail.com> <90e562bcf112ba3adacf1c39a160d3680d3b714d.camel@cybertec.at> Comments: In-reply-to Laurenz Albe message dated "Mon, 09 May 2022 08:50:56 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3742513.1652105307.1@sss.pgh.pa.us> Date: Mon, 09 May 2022 10:08:27 -0400 Message-ID: <3742514.1652105307@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > But from PostgreSQL v13 on, autovacuum is also triggered by INSERTs. > So I'd say that there is nothing to do after restoring a pg_dump, except > to wait until autovacuum is done. You might want to do manual VACUUM ANALYZE (no need for FULL) if you don't want to wait around for autovacuum to get to it. regards, tom lane