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 1pSgq2-0005tN-Na for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Feb 2023 16:10:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pSgq0-0003Hw-Kj for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Feb 2023 16:10:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pSgq0-0003Hn-7U for pgsql-hackers@lists.postgresql.org; Thu, 16 Feb 2023 16:10:24 +0000 Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pSgpw-0002az-A4 for pgsql-hackers@lists.postgresql.org; Thu, 16 Feb 2023 16:10:23 +0000 Received: by mail-il1-x12b.google.com with SMTP id t7so924318ilq.2 for ; Thu, 16 Feb 2023 08:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=+S/0t99MJ1vx13r+b9EtmCgZULXnatO126hItdZCem4=; b=2OxNAGFYx46A58Gs6LxsNw9kUh3rOQu2CQbpZP5OoqNebQ2rQz58g2HhFdloEtqpyY kY2VJrIAdu5NrpNzZXBlVV4ftnIdt3GCesQQnuq9pRqK4oniQiSRtSuz9mG5XEOX0CY6 UGT7GyIVziKL0kMd7H2w1PNSWAsvOf0j/5HWPKQZr5dcVQ2d3AkVjAd80kD9jd5JyKUb e3WzS6TUtj93t7Q9qFmgA9pekLthBOHiNeqB4pV2ZfOLtJtLyroY6e7mhrXW+3h3eGBt RxubDd1Ufq7rHI92nwj6sAUG7AYAYXwurXGDrbeyHQF/LA+KItq8VserBOh+O0jh0KD3 +9JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+S/0t99MJ1vx13r+b9EtmCgZULXnatO126hItdZCem4=; b=TTnD+h8aQLeJauIHAfhUy8VyZ8/4xnqi1YWPese8IhaZ2ETZYdPpgiO7nSYLKJhwkL Xp303XNYoy5IiCbWOp+E68xA+cseP3jGpNd94PANGtdX2+LR9kWDkVvPBRNr2mvyDdKa zJYNn+13TIuVX/ql5ujWdtrJZYsSSbyUfLqW4vTgKWpClITbznPwq5O0UrSW/hQL43Rr SMdrQlYpyd8vENQ8Ke6ZF8TVCxL1ubgmGrN502CmprAVUtrY2d6ICH1Dxu7MjceR2KWi 89hadRv4FZ/QAkr8j3BPe21oSKXhMpQ4b/wRuYdxMh9up6MG+3uCjvEys5dd8MdobgPj Cg/w== X-Gm-Message-State: AO0yUKUdpRWTr5jaiXcQC43oQwWm5mYiZQcpQ0EqnNWNk3PYUxuf+7wx GLL42WF0R1V3YB+Rs9I9uSTU0Q== X-Google-Smtp-Source: AK7set+M+FQo09avZME8nficywGqxPxXMKO9/S5h//ZjGBeZsoGXuYV4vjxmpDZ3uj2yxps3yyzTaA== X-Received: by 2002:a05:6e02:663:b0:314:1d62:25cc with SMTP id l3-20020a056e02066300b003141d6225ccmr4698526ilt.0.1676563818163; Thu, 16 Feb 2023 08:10:18 -0800 (PST) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id n25-20020a02a919000000b003c2b76fcdf2sm646932jam.52.2023.02.16.08.10.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Feb 2023 08:10:17 -0800 (PST) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 75F2D8012A0; Thu, 16 Feb 2023 10:10:16 -0600 (CST) Date: Thu, 16 Feb 2023 10:10:16 -0600 From: Justin Pryzby To: Tomas Vondra Cc: Andres Freund , Greg Stark , Matthias van de Meent , Zhihong Yu , pgsql-hackers@lists.postgresql.org Subject: Re: PATCH: Using BRIN indexes for sorted output Message-ID: <20230216161016.GV1653@telsasoft.com> References: <1607e037-8c5b-1626-9f98-496f067b9eb5@enterprisedb.com> <0695af03-8bd3-f032-47aa-0657135ce45d@enterprisedb.com> <87964cda-e440-8759-2838-bc4628072a18@enterprisedb.com> <14568731-ac91-ce2d-1477-0e2504c72775@enterprisedb.com> <20221206185143.ivy3afwmkhloksgv@awork3.anarazel.de> <4e679562-fd9a-33a3-ce71-cd7a27525f8e@enterprisedb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Feb 16, 2023 at 03:07:59PM +0100, Tomas Vondra wrote: > Rebased version of the patches, fixing only minor conflicts. Per cfbot, the patch fails on 32 bit builds. +ERROR: count mismatch: 0 != 1000 And causes warnings in mingw cross-compile. On Sun, Oct 23, 2022 at 11:32:37PM -0500, Justin Pryzby wrote: > I think new GUCs should be enabled during patch development. > Maybe in a separate 0002 patch "for CI only not for commit". > That way "make check" at least has a chance to hit that new code > paths. > > Also, note that indxpath.c had the var initialized to true. In your patch, the amstats guc is still being set to false during startup by the guc machinery. And the tests crash everywhere if it's set to on: TRAP: failed Assert("(nmatches_unique >= 1) && (nmatches_unique <= unique[nvalues-1])"), File: "../src/backend/access/brin/brin_minmax.c", Line: 644, PID: 25519 > . Some typos in your other patches: "heuristics heuristics". ste. > lest (least). These are still present. -- Justin