Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9McH-0006WX-9j for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jan 2022 07:39:49 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n9McG-00054f-5I for pgsql-hackers@arkaria.postgresql.org; Mon, 17 Jan 2022 07:39:48 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n9McF-00054W-QR for pgsql-hackers@lists.postgresql.org; Mon, 17 Jan 2022 07:39:47 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n9Mc9-0004xI-AT for pgsql-hackers@lists.postgresql.org; Mon, 17 Jan 2022 07:39:46 +0000 Received: by mail-pf1-x430.google.com with SMTP id m21so9502649pfd.3 for ; Sun, 16 Jan 2022 23:39:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=3WSN7egSHqVhFzBFGv11bWsvPRrxV4+BQzCREkoFN8k=; b=UcORpW1wneFnh0nu3GNJ93BJL7tF5XiAYI66ew6aOPB9akdbr9IpDKOl6A4++pXC8s RAqV8XfON1xhUtJkVOENzAe1Yq6qaGv88VyH4FgC43i2rAZ0RawUf/Y5D0R4Zkky72eU g/oJ1DMZbrfgXEcN6KBEKRYObN3n9C0XO0GCEJGEqXgeqfzsUG/6iy9f656boDy/gRB3 nfFr+x1cm/5RbAYhU+1IOrp5VnduM4sXTFtr6r4BgQUmLncBZedIdRpKl6RN2Gtzn2Fu pYGFUU+/N5HcZWHvLrFft8HmTTFEC3K2HXRUwtIZU5Fj7EEPTRCqz2R/MdqPjQMY+VQ3 8yaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=3WSN7egSHqVhFzBFGv11bWsvPRrxV4+BQzCREkoFN8k=; b=TRJG70VtF18JDW7Gd6YxHVooNZfBX44YJYHKYUtpsNv0uDhqhP5OSI0FdGKMcSz1O2 c0SBPeptdVN6qBoKng+Byda9MmtYStMExXB01PomBJhDbsXzQVNyoMokDH14zDPGiPGt vLEePdgRvG2pvrONc0vf+EOpk07LzyePNC/++KEs1HkKXy7PNU4ax/B4C7bbBAvqzdk/ Evji4e41lWfghsrqVQZoGTPSxoo+HoLu24pfmD9+oGhj7qvDVBJ/0W3jL+m7IItjLYeR 7AlrtA9TieIFvj2hVUinFU1txhV9mlHZEKAiw+FG8CqwLTUeLnJBe7+pKm7MyqYZSBy9 GxSw== X-Gm-Message-State: AOAM533vWqUZ+G9nZCkzC+JB502bqPZIfqRRMTNx8WT11PWxxbRXGivt mXQzYL9cxmqTGFBOQk2IVTE= X-Google-Smtp-Source: ABdhPJyllFs5cqxOlYXiq11vEA0t8oDUygbQqP6O4nQXABd0LLjpEcyXZtwiRbm59znfGw/aspj15w== X-Received: by 2002:a63:6ac8:: with SMTP id f191mr18013436pgc.504.1642405180191; Sun, 16 Jan 2022 23:39:40 -0800 (PST) Received: from jrouhaud (1-171-184-213.dynamic-ip.hinet.net. [1.171.184.213]) by smtp.gmail.com with ESMTPSA id c6sm13234444pfv.62.2022.01.16.23.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Jan 2022 23:39:38 -0800 (PST) Date: Mon, 17 Jan 2022 15:39:33 +0800 From: Julien Rouhaud To: Tomas Vondra Cc: Thomas , daniel@yesql.se, Jaime Casanova , pgsql , pgsql-hackers@lists.postgresql.org, dignoes@inf.unibz.it, boehlen@ifi.uzh.ch, p.moser@noi.bz.it, gamper@inf.unibz.it, Thomas Mannhart Subject: Re: Patch: Range Merge Join Message-ID: <20220117073933.m7ef2hwaubpcd75v@jrouhaud> References: <2a14f6f50f103773c843164ba7572fa0a2e27d9f.camel@j-davis.com> <20211004212754.GA30366@ahch-to> <20211005003034.GA30929@ahch-to> <1dbe10e3-2264-d6ad-bd1f-6f98cf474818@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1dbe10e3-2264-d6ad-bd1f-6f98cf474818@enterprisedb.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Wed, Nov 17, 2021 at 11:28:43PM +0100, Tomas Vondra wrote: > On 11/17/21 15:45, Thomas wrote: > > Thank you for the feedback and sorry for the oversight. I fixed the bug > > and attached a new version of the patch. > > > > Kind Regards, Thomas > > > > Am Mi., 17. Nov. 2021 um 15:03 Uhr schrieb Daniel Gustafsson > > >: > > > > This patch fails to compile due to an incorrect function name in an > > assertion: > > > >   nodeMergejoin.c:297:9: warning: implicit declaration of function > > 'list_legth' is invalid in C99 [-Wimplicit-function-declaration] > >   Assert(list_legth(node->rangeclause) < 3); > > > > That still doesn't compile with asserts, because MJCreateRangeData has > > Assert(list_length(node->rangeclause) < 3); > > but there's no 'node' variable :-/ > > > I took a brief look at the patch, and I think there are two main issues > preventing it from moving forward. > > 1) no tests > > 2) lack of comments > > 3) I'm not quite sure I like "Range Merge Join" to be honest. It's still a > "Merge Join" pretty much. What about ditching the "Range"? There'll still be > "Range Cond" key, which should be good enough I think. > > 4) Some minor whitespace issues (tabs vs. spaces). See 0002. It's been 2 months since Tomas posted that review. Thomas, do you plan to work on that patch during this commitfest?