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 1lHZaz-00063T-B3 for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Mar 2021 22:03:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lHZay-0008MU-4k for pgsql-hackers@arkaria.postgresql.org; Wed, 03 Mar 2021 22:03:52 +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 1lHZax-0008MN-U4 for pgsql-hackers@lists.postgresql.org; Wed, 03 Mar 2021 22:03:51 +0000 Received: from relay10.mail.gandi.net ([217.70.178.230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lHZav-0003G2-BG for pgsql-hackers@lists.postgresql.org; Wed, 03 Mar 2021 22:03:51 +0000 Received: from [172.16.255.146] (14.149.88.79.rev.sfr.net [79.88.149.14]) (Authenticated sender: vik@postgresfriends.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 18360240004; Wed, 3 Mar 2021 22:03:46 +0000 (UTC) Subject: Re: TRIM_ARRAY To: Tom Lane Cc: Dian M Fay , pgsql-hackers@lists.postgresql.org References: <6565ca98-6733-532a-2130-752545bab6b5@postgresfriends.org> <1249311.1614808037@sss.pgh.pa.us> From: Vik Fearing Message-ID: <5d4074b7-f844-e52c-2b3b-833f2d334a69@postgresfriends.org> Date: Wed, 3 Mar 2021 23:03:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <1249311.1614808037@sss.pgh.pa.us> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 3/3/21 10:47 PM, Tom Lane wrote: > > I had the same problem as Dian of the func.sgml hunk winding up in > the wrong place. I think this is practically inevitable unless the > submitter uses more than 3 lines of context for the diff, because > otherwise the context is just boilerplate that looks the same > everywhere in the function tables. Unless the diff is 100% up to date > so that the line numbers are exactly right, patch is likely to guess > wrong about where to insert the new hunk. We'll just have to be > vigilant about that. Noted. > I fooled with your test case a bit ... I didn't think it was really > necessary to create and drop a table, when we could just use a VALUES > clause as source of test data. Also you'd forgotten to update the > "descr" description of the function to match the final understanding > of the semantics. Thank you. > Looks good otherwise, so pushed. Thanks! -- Vik Fearing