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 1kZQ12-0003h1-5b for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2020 02:56: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 1kZQ10-0002b6-M1 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Nov 2020 02:56:14 +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 1kZQ10-0002at-Fo for pgsql-hackers@lists.postgresql.org; Mon, 02 Nov 2020 02:56:14 +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 1kZQ0t-0006cT-14 for pgsql-hackers@lists.postgresql.org; Mon, 02 Nov 2020 02:56: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 0A22u3am586391; Sun, 1 Nov 2020 21:56:04 -0500 From: Tom Lane To: Nikhil Benesch cc: pgsql-hackers@lists.postgresql.org Subject: Re: [PATCH] Support negative indexes in split_part In-reply-to: References: Comments: In-reply-to Nikhil Benesch message dated "Sun, 01 Nov 2020 21:39:11 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <586388.1604285763.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 01 Nov 2020 21:56:03 -0500 Message-ID: <586389.1604285763@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Nikhil Benesch writes: > I posted the idea of allowing negative indexes in split_part to pgsql-ge= neral > last week, and it seemed there was some interest: > http://postgr.es/m/CAPWqQZR%2B-5pAZNSSrnmYczRaX-huemc%3DoO8URvDZvUA-M%3D= MOBA%40mail.gmail.com > Attached is a patch, based on master, that implements the approach as de= scribed > in that discussion. Please add an entry to the upcoming commitfest, to make sure we don't lose track of this: https://commitfest.postgresql.org/30/ regards, tom lane