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 1mnStG-00030u-I2 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Nov 2021 21:54:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mnStF-0001kN-F1 for pgsql-hackers@arkaria.postgresql.org; Wed, 17 Nov 2021 21:54:49 +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 1mnStF-0001kD-5w for pgsql-hackers@lists.postgresql.org; Wed, 17 Nov 2021 21:54:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mnStC-0003my-Ub for pgsql-hackers@lists.postgresql.org; Wed, 17 Nov 2021 21:54:48 +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 1AHLshw82779238; Wed, 17 Nov 2021 16:54:44 -0500 From: Tom Lane To: "Bossart, Nathan" cc: "pgsql-hackers@lists.postgresql.org" Subject: Re: Add planner support function for starts_with() In-reply-to: <402AA5E7-A27C-482C-BA9C-44FE0FC3950B@amazon.com> References: <232599.1633800229@sss.pgh.pa.us> <402AA5E7-A27C-482C-BA9C-44FE0FC3950B@amazon.com> Comments: In-reply-to "Bossart, Nathan" message dated "Wed, 17 Nov 2021 19:00:13 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2779236.1637186083.1@sss.pgh.pa.us> Date: Wed, 17 Nov 2021 16:54:43 -0500 Message-ID: <2779237.1637186083@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "Bossart, Nathan" writes: > On 10/9/21, 10:24 AM, "Tom Lane" wrote: >> With the (admittedly later) introduction of planner support functions, >> it's really quite easy to do better. The attached patch adds a planner >> support function for starts_with(), with these benefits: > The patch looks reasonable to me. Pushed, thanks for reviewing! regards, tom lane