Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f61tp-0005Ku-Ld for pgsql-committers@arkaria.postgresql.org; Tue, 10 Apr 2018 22:38:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f61to-0004tA-H8 for pgsql-committers@arkaria.postgresql.org; Tue, 10 Apr 2018 22:38:00 +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.89) (envelope-from ) id 1f61to-0004t1-4t for pgsql-committers@lists.postgresql.org; Tue, 10 Apr 2018 22:38:00 +0000 Received: from mail-yw0-x22d.google.com ([2607:f8b0:4002:c05::22d]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f61tk-0004f1-Da for pgsql-committers@lists.postgresql.org; Tue, 10 Apr 2018 22:37:58 +0000 Received: by mail-yw0-x22d.google.com with SMTP id x20so4576886ywg.5 for ; Tue, 10 Apr 2018 15:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=S/AMfFOACr92SWc5d55xoyeUYEGBjB1vN0imj7aQr3Q=; b=MqUm6LvOwSSQtnicBP2Ooayqz0DZbq+H4z3HiPLgigvy1jTW/ElfjTcaftbZ3LIXr+ Sn64d6wdjwZ38YYXEyF+0NtY/hSYzAlei2ETXVusmoEX92a4h4FwV2wcUtG6Pbt7c3rx sqBCAEVzkZRWNrLmfZoPXgoP5dq//kJZtk9rr6LJT6u025WsqaGjHWTPBu+smPE0+Z05 JU7i3ZSC39ni9Ep7CDZPzhwKxk0zhAWqp31QzCwn+a3DbSphydCzeBMTUGLVK/sTmAnF sZfeHrlbj3WazeSqGFQHaU30T7slNd7+skykavUU2LD/s+kZRkfDJGFxnLXdoR+ATg/K pVfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=S/AMfFOACr92SWc5d55xoyeUYEGBjB1vN0imj7aQr3Q=; b=N+7/ENBN4ShorgCGjh8P1Mjqm8LK+vkeEYsvvSXTIx6xPbDTFTNPDkbM1+8mqQWdK+ lRD1jqjMtl4JV2IyiP1l+F+G73lRn0092lgOIikPBOLPlwxIO6uBGRUyTSC2+hxCGXz2 4JmMB8wloeoL8SbXFZxXc0jTFj/4Jq042QdKIUBsjqISk+LvsZ10jWeYT6QANFzlFxBC G84tX1efLkFBLai4rTiMKvzAAIqNY4GMXK7+6+rtW85BFbhbb9dZ30J5UoHvDcSARXii TXlqC8JLxAKvKx8g1G0PKcZdxXx83yoQZ9RfV3WjIgQ5q5oaq9MidMrjgBrideETvkqT iKjg== X-Gm-Message-State: ALQs6tCE+JaUBOEdBF+8C061cqsCjIjkh8cYpi4ccpQ9y2Atpph9s007 9u4JiRjq4jWDGKzeXDux6mgnPbj+9qbXrNPSF1G4djc6n1ULld6WjTBpBb6Q9m+BDaLWfhbtuJ9 mPbwSwJGshlT5iQPkVsLTTK8Ylb/AUHmh/I/v+fD0NFf4oxYFlSFk9FOupZ8jQLWad2M8kXbZ1h RHweVm6TRKX5aO9HvXFoPXfBw1 X-Google-Smtp-Source: AIpwx493+AI58tIzNzQeKerOA8upPgMLd3Xqh+G18sAc56ObfafDr39xa+1NWrBjXQ/ccws3j41UaA== X-Received: by 10.129.54.17 with SMTP id d17mr1279094ywa.385.1523399875439; Tue, 10 Apr 2018 15:37:55 -0700 (PDT) Received: from [192.168.10.146] ([98.122.175.38]) by smtp.gmail.com with ESMTPSA id f128sm1605014ywd.110.2018.04.10.15.37.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Apr 2018 15:37:54 -0700 (PDT) From: Andrew Dunstan X-Google-Original-From: Andrew Dunstan Subject: Re: pgsql: Optimize btree insertions for common case of increasing values To: Peter Geoghegan , Andrew Dunstan Cc: Pavan Deolasee , pgsql-committers References: Message-ID: Date: Tue, 10 Apr 2018 18:37:54 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-MW List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 04/10/2018 06:33 PM, Peter Geoghegan wrote: > On Tue, Apr 10, 2018 at 3:27 PM, Andrew Dunstan wrote: >> Committed with light editing. I didn't put the #define in the .h file - >> it's only used here and that seemed like unnecessary clutter. I moved it >> to the top of the file. I also standardized the spelling of "optimization". > The comments still say "Check if the page...no split is in progress". > Despite the fact that that's just an assertion now. > Fixed. cheers andrew -- Andrew Dunstan https://www.2ndQuadrant.com PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services