Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eCCVt-0003LR-6j for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Nov 2017 22:38:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eCCVs-0002wo-OG for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Nov 2017 22:38:32 +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_2) (envelope-from ) id 1eCCUL-0000Ak-NO for pgsql-hackers@postgresql.org; Tue, 07 Nov 2017 22:36:57 +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_2) (envelope-from ) id 1eCCUI-0006ff-UH for pgsql-hackers@postgresql.org; Tue, 07 Nov 2017 22:36:56 +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 vA7Mae3P010935; Tue, 7 Nov 2017 17:36:40 -0500 From: Tom Lane To: Peter Geoghegan cc: Andres Freund , Claudio Freire , =?UTF-8?B?0K7RgNC40Lkg0KHQvtC60L7Qu9C+0LI=?= , Sokolov Yura , Alvaro Herrera , Heikki Linnakangas , PostgreSQL-Dev Subject: Re: Small improvement to compactify_tuples In-reply-to: References: <20171107152004.axgznk3n5tkzvnnt@alap3.anarazel.de> <29007.1510090796@sss.pgh.pa.us> Comments: In-reply-to Peter Geoghegan message dated "Tue, 07 Nov 2017 14:11:07 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <10933.1510094200.1@sss.pgh.pa.us> Date: Tue, 07 Nov 2017 17:36:40 -0500 Message-ID: <10934.1510094200@sss.pgh.pa.us> 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 Peter Geoghegan writes: > My point is only that it's worth considering that this factor affects > how representative your sympathetic case is. It's not clear how many > PageIndexMultiDelete() calls are from opportunistic calls to > _bt_vacuum_one_page(), how important that subset of calls is, and so > on. Maybe it doesn't matter at all. According to the perf measurements I took earlier, essentially all the compactify_tuple calls in this test case are from PageRepairFragmentation (from heap_page_prune), not PageIndexMultiDelete. I'd be the first to agree that I doubt that test case is really representative. I'd been whacking around Yura's original case to try to get PageRepairFragmentation's runtime up to some measurable fraction of the total, and while I eventually succeeded, I'm not sure that too many real workloads will look like that. However, if we can make it smaller as well as faster, that seems like a win even if it's not a measurable fraction of most workloads. 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