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 1rgzyz-00944j-IB for pgsql-general@arkaria.postgresql.org; Mon, 04 Mar 2024 04:31:21 +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 1rgzyy-0041jO-0P for pgsql-general@arkaria.postgresql.org; Mon, 04 Mar 2024 04:31:20 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rgzyx-0041il-M6 for pgsql-general@lists.postgresql.org; Mon, 04 Mar 2024 04:31:20 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rgzys-002eqz-Vj for pgsql-general@lists.postgresql.org; Mon, 04 Mar 2024 04:31:19 +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 4244VBVr3494987; Sun, 3 Mar 2024 23:31:11 -0500 From: Tom Lane To: Laurenz Albe cc: veem v , pgsql-general Subject: Re: When manual analyze is needed In-reply-to: References: Comments: In-reply-to Laurenz Albe message dated "Mon, 04 Mar 2024 05:12:09 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3494985.1709526671.1@sss.pgh.pa.us> Date: Sun, 03 Mar 2024 23:31:11 -0500 Message-ID: <3494986.1709526671@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > The only things that require manual ANALYZE are > ... You missed one important exception: autovacuum/autoanalyze cannot process temporary tables, because those are not accessible outside the owning session. So you need to do those manually if it's important for performance. regards, tom lane