Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1FyP-00FO41-CZ for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Oct 2024 02:10:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t1FxO-00EHwh-OW for pgsql-hackers@arkaria.postgresql.org; Thu, 17 Oct 2024 02:09:43 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t1FxO-00EHwV-Es for pgsql-hackers@lists.postgresql.org; Thu, 17 Oct 2024 02:09:42 +0000 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t1FxM-001HVU-7x for pgsql-hackers@lists.postgresql.org; Thu, 17 Oct 2024 02:09:41 +0000 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-71e579abb99so281423b3a.2 for ; Wed, 16 Oct 2024 19:09:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729130979; x=1729735779; darn=lists.postgresql.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=pzRroYP+Hw1Sh6yxG9sMTKpRdG1B+q71RWRHRUB9dxo=; b=R/e0nj/L8t51i0w72ep0LOMGbcSNS2qqc8fNGyRsqdunA577wbdtQ8zbRV1txkBrD8 +lYhTRUzPEjp1R4gtMMkbYznuZ8kr7OjpyjU72PJNNgbnbNC+kza7Rp8ZCzjVVHkcukI JDjIOQ7unJes/b0WdzNhfr6nXGdohKnX6bqoEU02aKjO2lhU5FMXOp3FuUDf/gaisnmk Z0kg74/NKEC8zI6hlEvjwzQmPbhMMKemetpOJW6qQcwSNZEiB9LI2NpKwjD5WtSJe8pP DYU2QFbxA7ORhb5LPbuFlz1XwMDwbHNBKxJMdUYmA0NyrxXr0/sJDtpPIjV5/AoPx90Z pglQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729130979; x=1729735779; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pzRroYP+Hw1Sh6yxG9sMTKpRdG1B+q71RWRHRUB9dxo=; b=lHzKNKKAB36rJETr1VaDhQUZkhDO6jzGwi9vuMvDpDZ9TumABpXLtTZu2CZAPpx58X gCTPAe15rs8C8bP6XebfPyBxwGMfJqu2Mi0jb9gAyGVdm/8FqTeTezbNrf8micYd7gVy xIwQEemNCX9tMYohWFlrQ1yrOp5ZNt4g7sYgZUOEV20x51ZibM56BCxgpM/O7hFIxUYM igBLCjnpLuds65h8RwPC5YkcTnslw16530QgXL7CcDCmAvl26EIhQb42kphnDKUTba47 LWlzQHG0j+STd70WKO88IU7BxwFSoYRQoif+NsofUJmk1n6sEugIHMxM/fGZOPBybf7M elIg== X-Forwarded-Encrypted: i=1; AJvYcCW6ES6QcqFmGduasgrt8XooQql5dHDPIILGFQARTRZLRF846+6BXX6mUP09q8VAr5SE0kbTFm6U7R+ZOxrX@lists.postgresql.org X-Gm-Message-State: AOJu0YyrYNHCptSNN2Sg/jtIUjBl4+ca+uPFZmiAmlz/gi7l5aFKLRQ/ kJBSTQVmLt7gbDw2aWNW0R36hJFQom8HldtkZnSw7tzSa0p5hhYn X-Google-Smtp-Source: AGHT+IFw1sGgAsKoG1L0JpJFDtbKvLk8EELEm2DODSWmMjvNFgsG6hKz67vWkNYS2ZJ/h67iHhsGiw== X-Received: by 2002:a05:6a00:3e25:b0:71e:6e4a:507a with SMTP id d2e1a72fcca58-71e7d9f5ffcmr8300676b3a.3.1729130978938; Wed, 16 Oct 2024 19:09:38 -0700 (PDT) Received: from [10.10.20.104] (node-u1e.pool-101-109.dynamic.totinternet.net. [101.109.152.18]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e774a2accsm3766023b3a.108.2024.10.16.19.09.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Oct 2024 19:09:38 -0700 (PDT) Message-ID: <1cbb5040-a83c-4a40-87e9-45811b89a026@gmail.com> Date: Thu, 17 Oct 2024 09:09:29 +0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: POC, WIP: OR-clause support for indexes To: Alexander Korotkov Cc: Robert Haas , Alena Rybakina , jian he , Nikolay Shaplov , pgsql-hackers@lists.postgresql.org, pgsql-hackers@postgresql.org, Peter Geoghegan , Marcos Pegoraro , teodor@sigaev.ru, Peter Eisentraut , Ranier Vilela References: <567ED6CA.2040504@sigaev.ru> <93464dd6-d484-4021-b71f-e82928bf6758@gmail.com> <63617a30-6078-4e86-b44b-6364e04e210d@postgrespro.ru> <21752e9e-26fb-4665-bfcc-090bf4093e5a@postgrespro.ru> <9ac6480d-6686-4c3a-9149-ba66df4f88ad@gmail.com> <45050ba9-3777-4cc1-89ad-a02deebe7729@gmail.com> Content-Language: en-AU From: Andrei Lepikhov In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 10/17/24 03:39, Alexander Korotkov wrote: > On Wed, Oct 16, 2024 at 7:22 AM Andrei Lepikhov wrote: >> On 10/12/24 21:25, Alexander Korotkov wrote: >>> I forgot to specify (COSTS OFF) for EXPLAINs in regression tests. Fixed in v42. >> I've passed through the patch set. >> >> Let me put aside the v42-0003 patch—it looks debatable, and I need time >> to analyse the change in regression tests caused by this patch. > > Yes, 0003 patch is for illustration purposes for now. I will not keep > rebasing it. We can pick it later when main patches are committed. Got it. I will save it into the TODO list. > >> Comments look much better according to my current language level. Ideas >> with fast exits also look profitable and are worth an additional >> 'matched' variable. >> >> So, in general, it is ok. I think only one place with >> inner_other_clauses can be improved. Maybe it will be enough to create >> this list only once, outside 'foreach(j, groupedArgs)' cycle? Also, the >> comment on the necessity of this operation was unclear to me. See the >> attachment for my modest attempt at improving it. > > Thank you, I've integrated your patch with minor edits from me. Thanks, I'm not sure about necessity to check NIL value of a list (list_free also do it), but I'm ok with the edits. -- regards, Andrei Lepikhov