Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zcvhn-0002R7-BC for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2015 13:27:59 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zcvhm-0005Qf-9R for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Sep 2015 13:27:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zcvhk-0005Pq-LR for pgsql-hackers@postgreSQL.org; Fri, 18 Sep 2015 13:27:56 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Zcvhh-00047i-Co for pgsql-hackers@postgreSQL.org; Fri, 18 Sep 2015 13:27:55 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t8IDRniF011157; Fri, 18 Sep 2015 09:27:49 -0400 From: Tom Lane To: Fujii Masao cc: Teodor Sigaev , pgsql-hackers@postgreSQL.org Subject: Re: [COMMITTERS] pgsql: Add pages deleted from pending list to FSM In-reply-to: References: Comments: In-reply-to Fujii Masao message dated "Fri, 18 Sep 2015 15:36:14 +0900" Date: Fri, 18 Sep 2015 09:27:49 -0400 Message-ID: <11156.1442582869@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org [ moving thread to -hackers ] Fujii Masao writes: > So autoanalyze still doesn't call IndexFreeSpaceMapVacuum(). > That is, only backend can clean the list in INSERT-only workload. > I don't think that this is desirable. Because the backend will > periodically take a big performance penalty. > So I'm thinking that even autoanalyze should call IndexFreeSpaceMapVacuum() > to clean the list in a background, in order to avoid such spikes in > INSERT response time. Thought? It seems quite bizarre for auto-analyze to do that. auto-vacuum, sure, but I do not think this should get plugged into ANALYZE. Maybe we need to rethink the rules for what is autovacuum vs. autoanalyze, or come up with some third thing that the autovac daemon does for indexes. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers