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 1emZoL-0001Sg-T4 for pgsql-committers@arkaria.postgresql.org; Fri, 16 Feb 2018 06:47:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1emZoK-0001vD-LR for pgsql-committers@arkaria.postgresql.org; Fri, 16 Feb 2018 06:47:56 +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 1emZoK-0001hO-4F for pgsql-committers@lists.postgresql.org; Fri, 16 Feb 2018 06:47:56 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1emZoG-0001TS-O3 for pgsql-committers@postgresql.org; Fri, 16 Feb 2018 06:47:54 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id CEB0220C05 for ; Fri, 16 Feb 2018 01:47:51 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Fri, 16 Feb 2018 01:47:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=GC/HY7IWZ+weAOu4XZhIbEnSNkL4a eVqJWR5qb55pk8=; b=B/R+x3s+7DiGpjeXDSaNAiURH53y9atgz62jNl9ZQvlTU blsenV7eCHt8pheNh6CjiZtnauS0AXo0aBR6TeCymH29rIkG/ESOc3z4ADom/zjm Ctfyp54ld5CA2d4+dtFldhIgq3j0spZm8vlmaBkg71I1H0VtreEDi4dW9hRZu3Xv lHsSUWbgyTvOOzGOfMHha8sLc0ujOeF+6De2u395A/51GTBwv6wrqNAJydL0IzpL /mkuAccsZhq5Rzx/mLEZam515zCeWV+Pe66gNRWwmS5V2BJQRrOYcUAlIcEpU4l+ IcMnWG/V/NRapapzA3QnSiR1jLEjezetouM9SDCuQ== X-ME-Sender: Received: from intern.anarazel.de (unknown [136.24.76.189]) by mail.messagingengine.com (Postfix) with ESMTPA id 83F837E34D for ; Fri, 16 Feb 2018 01:47:51 -0500 (EST) Date: Thu, 15 Feb 2018 22:47:50 -0800 From: Andres Freund To: pgsql-committers@postgresql.org Subject: Re: pgsql: Do execGrouping.c via expression eval machinery. Message-ID: <20180216064750.ltctxkfcp4gzgx3z@alap3.anarazel.de> References: <20180216061430.3tpeweklp4xmcjfu@alap3.anarazel.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180216061430.3tpeweklp4xmcjfu@alap3.anarazel.de> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-02-15 22:14:30 -0800, Andres Freund wrote: > On 2018-02-16 05:58:09 +0000, Andres Freund wrote: > > Do execGrouping.c via expression eval machinery. > > > > This has a performance benefit on own, although not hugely so. The > > primary benefit is that it will allow for to JIT tuple deforming and > > comparator invocations. > > > > Author: Andres Freund > > Discussion: https://postgr.es/m/20171129080934.amqqkke2zjtekd4t@alap3.anarazel.de > > Triggered a failure on termite: > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=termite&dt=2018-02-16%2006%3A00%3A06 > investigating. If I can't figure this out by tomorrow PST morning, I'll > revert. I've analyzed the problem - the cross type case isn't quite right (i.e. the FindTupleHashEntry call in nodeSubplan.c). Unfortunately we do not exercise that code in a meaningful manner on a 64 bit system, as int4 vs int8 is nearly invisible there... Reverting as writing a fix and developing appropriate coverage will take a couple hours. Greetings, Andres Freund