Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biT3u-0006tc-3I for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Sep 2016 21:10:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1biT3t-0003vN-1t for pgsql-hackers@arkaria.postgresql.org; Fri, 09 Sep 2016 21:10:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1biT2U-0002Ke-EE for pgsql-hackers@postgresql.org; Fri, 09 Sep 2016 21:08:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1biT2Q-0005KC-SV for pgsql-hackers@postgresql.org; Fri, 09 Sep 2016 21:08:45 +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 u89L8JoD017830; Fri, 9 Sep 2016 17:08:19 -0400 From: Tom Lane To: amborodin@acm.org cc: Alvaro Herrera , Andrew Borodin , Anastasia Lubennikova , Michael Paquier , Amit Kapila , Alexander Korotkov , pgsql-hackers , Oleg Bartunov , Heikki Linnakangas , Sergey Mirvoda Subject: Re: Re: GiST optimizing memmoves in gistplacetopage for fixed-size updates [PoC] In-reply-to: <552.1473445163@sss.pgh.pa.us> References: <20160908220223.GA65203@alvherre.pgsql> <552.1473445163@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Fri, 09 Sep 2016 14:19:23 -0400" Date: Fri, 09 Sep 2016 17:08:19 -0400 Message-ID: <17829.1473455299@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 ... BTW, a quick grep for other calls of PageIndexTupleDelete suggests that SPGiST could make very good use of PageIndexTupleOverwrite, and there may be use for it in GIN too. I see one place in btree where there's a PageIndexTupleDelete and then an insert, but it's unlikely to be worth touching because the page is expected to be empty after the PageIndexTupleDelete; so there's no data movement we could avoid in that case. I don't plan to investigate these cases myself, but somebody should. 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