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 1oJbf2-0004sX-90 for pgsql-general@arkaria.postgresql.org; Thu, 04 Aug 2022 14:17:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oJbf1-0000aq-5n for pgsql-general@arkaria.postgresql.org; Thu, 04 Aug 2022 14:17:15 +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 1oJbf0-0000WB-R6 for pgsql-general@lists.postgresql.org; Thu, 04 Aug 2022 14:17:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oJbey-0004fF-Lm for pgsql-general@lists.postgresql.org; Thu, 04 Aug 2022 14:17:13 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 274EHBKR3445973; Thu, 4 Aug 2022 10:17:11 -0400 From: Tom Lane To: Danny Shemesh cc: "David G. Johnston" , "pgsql-general@lists.postgresql.org" Subject: Re: Index only scans for expressional indices when querying for the expression In-reply-to: References: <3435275.1659620316@sss.pgh.pa.us> Comments: In-reply-to Danny Shemesh message dated "Thu, 04 Aug 2022 17:03:22 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3445971.1659622631.1@sss.pgh.pa.us> Date: Thu, 04 Aug 2022 10:17:11 -0400 Message-ID: <3445972.1659622631@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Danny Shemesh writes: > Do you think there'd be room to accept a contribution for such > functionality with a disabled-by-default pg setting, > or are you skeptical it would ever be worth the trade-off ? If you can show me a matching algorithm with non-exponential runtime, I'd be interested. regards, tom lane