Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwvBK-0006J0-08 for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jan 2020 21:47:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwvBI-0005MM-PO for pgsql-hackers@arkaria.postgresql.org; Wed, 29 Jan 2020 21:47:28 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwvBI-0005Fw-Ct for pgsql-hackers@lists.postgresql.org; Wed, 29 Jan 2020 21:47:28 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwvBB-0007kE-Vp for pgsql-hackers@lists.postgresql.org; Wed, 29 Jan 2020 21:47:27 +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 00TLlJXP005748; Wed, 29 Jan 2020 16:47:20 -0500 From: Tom Lane To: Alvaro Herrera cc: Pg Hackers Subject: Re: parens cleanup In-reply-to: <20200129200401.GA6303@alvherre.pgsql> References: <20200129200401.GA6303@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Wed, 29 Jan 2020 17:04:01 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5746.1580334439.1@sss.pgh.pa.us> Date: Wed, 29 Jan 2020 16:47:19 -0500 Message-ID: <5747.1580334439@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > Some ereport calls have excess sets of parentheses. patch 0001 removes > the ones I found in a very quick grep. +1 ... kind of looks like somebody got this wrong long ago, and then various people copied-and-pasted from a bad example. > 0002 removes newlines immediately following parens. These were > previously useful because pgindent would move arguments further to the > left so that the line would fit under 80 chars. However, pgindent no > longer does that, so the newlines are pointless and ugly. +1 except for the changes in zic.c. Those line breaks are following the upstream code, so I'd just put them back in the next merge ... > These being cosmetic cleanups, they're not intended for backpatch, > though an argument could be made that doing that would save some future > backpatching pain. If ther are sufficient votes for that, I'm open to > doing it. (Of course, 0002 would not be backpatched further back than > pg10, the first release that uses the "new" pgindent rules.) Meh, -0.1 or so on back-patching. regards, tom lane