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 1jZifA-0007sw-Ut for pgsql-hackers@arkaria.postgresql.org; Fri, 15 May 2020 22:18:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jZif9-0007U7-NB for pgsql-hackers@arkaria.postgresql.org; Fri, 15 May 2020 22:18:39 +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 1jZif9-0007Ty-GO for pgsql-hackers@lists.postgresql.org; Fri, 15 May 2020 22:18:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jZif6-00010a-UM for pgsql-hackers@lists.postgresql.org; Fri, 15 May 2020 22:18:38 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 04FMIYuN011492; Fri, 15 May 2020 18:18:34 -0400 From: Tom Lane To: Alvaro Herrera cc: Thomas Munro , Michael Paquier , Pg Hackers , Piotr Stefaniak Subject: Re: pgindent && weirdness In-reply-to: <20200515221530.GA2345@alvherre.pgsql> References: <20200515221530.GA2345@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Fri, 15 May 2020 18:15:30 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <11490.1589581114.1@sss.pgh.pa.us> Date: Fri, 15 May 2020 18:18:34 -0400 Message-ID: <11491.1589581114@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > On 2020-May-16, Thomas Munro wrote: >> Here's the patch I propose to commit to pg_bsd_indent, if the repo >> lets me, and here's the result of running it on the PG tree today. > Looks good. Of all these changes in PG, only two are of the STACK_OK() > nature, and there are 38 places that get better. It should also be noted that there are a lot of places where we've programmed around this silliness by artificially breaking conditions using IsA() into multiple lines. So the "38 places" is a lowball estimate of how much of a problem this has been. regards, tom lane