Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCSam-0000uP-SX for pgsql-hackers@arkaria.postgresql.org; Sun, 21 May 2017 15:16:24 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dCSal-0003Zr-TB for pgsql-hackers@arkaria.postgresql.org; Sun, 21 May 2017 15:16:23 +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_2) (envelope-from ) id 1dCSZD-0000oA-Fd for pgsql-hackers@postgresql.org; Sun, 21 May 2017 15:14:47 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dCSZ4-0004W2-LT for pgsql-hackers@postgresql.org; Sun, 21 May 2017 15:14:46 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1dCSZ0-0006nD-NO; Sun, 21 May 2017 11:14:34 -0400 Date: Sun, 21 May 2017 11:14:34 -0400 From: Bruce Momjian To: Tom Lane Cc: Piotr Stefaniak , Alvaro Herrera , Peter Eisentraut , "pgsql-hackers@postgresql.org" Subject: Re: pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.) Message-ID: <20170521151434.GD17369@momjian.us> References: <5316.1495051919@sss.pgh.pa.us> <11874.1495057567@sss.pgh.pa.us> <15819.1495145176@sss.pgh.pa.us> <28060.1495161064@sss.pgh.pa.us> <322.1495328415@sss.pgh.pa.us> <31643.1495375940@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <31643.1495375940@sss.pgh.pa.us> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On Sun, May 21, 2017 at 10:12:20AM -0400, Tom Lane wrote: > Piotr Stefaniak writes: > > On 2017-05-21 03:00, Tom Lane wrote: > >> I wrote: > >>> Also, I found two places where an overlength comment line is simply busted > >>> altogether --- notice that a character is missing at the split point: > > >> I found the cause of that: you need to apply this patch: > > > I have been analyzing this and came to different conclusions. > > Well, the code as it stands breaks those two comments (and a third one > I'd failed to notice before). With the patch I propose, the only changes > are that those comments are left unmolested. So even aside from the > fact that this code is visibly unsafe, it does correspond to the symptom. Frankly, I found it ironic that the BSD indent code, which was designed to improve code clarity, was so confusingly written. I went with the sed script (and later Perl script) wrapper solution because the BSD indent code was so confusing to me. It seems like a "The Cobbler's children have no shoes" syndrome: https://english.stackexchange.com/questions/159004/the-cobblers-children-have-no-shoes -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription + -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers