Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1a9zlX-0005ok-5r for pgsql-committers@arkaria.postgresql.org; Fri, 18 Dec 2015 18:28:31 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1a9zlW-0007zB-Oc for pgsql-committers@arkaria.postgresql.org; Fri, 18 Dec 2015 18:28:30 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a9zlK-0007lt-PS for pgsql-committers@postgresql.org; Fri, 18 Dec 2015 18:28:18 +0000 Received: from hook.sigaev.ru ([93.180.27.50]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1a9zlH-0003jB-Nu for pgsql-committers@postgresql.org; Fri, 18 Dec 2015 18:28:18 +0000 Received: from zorg.sigaev.ru (93-80-5-82.broadband.corbina.ru [93.80.5.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: teodor) by hook.sigaev.ru (Postfix) with ESMTPSA id 92B40B191C3; Fri, 18 Dec 2015 21:28:14 +0300 (MSK) Subject: Re: pgsql: Allow to omit boundaries in array subscript To: Tom Lane Cc: pgsql-committers@postgresql.org References: <19144.1450457693@sss.pgh.pa.us> From: Teodor Sigaev Message-ID: <5674503A.1050301@sigaev.ru> Date: Fri, 18 Dec 2015 21:28:10 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <19144.1450457693@sss.pgh.pa.us> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-committers Precedence: bulk Sender: pgsql-committers-owner@postgresql.org I will work on it. Tom Lane wrote: > Teodor Sigaev writes: >> Allow to omit boundaries in array subscript > > For the record, this patch wasn't nearly ready to commit. > > * User-facing documentation is very poor; at the least it needs > copy-editing by someone with better command of English. > > * Comments are next to nonexistent. I note for example that the > description of struct A_Indices wasn't updated, much less that of > ArrayRef. > > * Some error messages aren't meeting the style guidelines. > > * I'm dubious that the parsetree representation is well-chosen. > Probably a single is_slice flag would have been better. > > * Dumps core on fixed-length arrays, eg > > regression=# select f1[1:] from point_tbl; > server closed the connection unexpectedly > > I think it should be reverted and sent back for another round of > review. If not, I'll probably spend tomorrow cleaning it up, > but I really have other things I should be doing. > > regards, tom lane > > -- Teodor Sigaev E-mail: teodor@sigaev.ru WWW: http://www.sigaev.ru/ -- Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-committers