Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bynJA-0005Q0-ID for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 22:01:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bynJA-0000hw-1b for pgsql-hackers@arkaria.postgresql.org; Mon, 24 Oct 2016 22:01:28 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bynHm-0007Y7-IF for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 22:00:02 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bynHj-0000tc-5o for pgsql-hackers@postgresql.org; Mon, 24 Oct 2016 22:00:01 +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 u9OLxrXA002196; Mon, 24 Oct 2016 17:59:54 -0400 From: Tom Lane To: Fabien COELHO cc: Alvaro Herrera , Michael Paquier , Magnus Hagander , PostgreSQL mailing lists Subject: Re: [COMMITTERS] pgsql: Remove extra comma at end of enum list In-reply-to: References: <20161024183103.ugxrswzoft64x2mr@alvherre.pgsql> <17167.1477335799@sss.pgh.pa.us> Comments: In-reply-to Fabien COELHO message dated "Mon, 24 Oct 2016 22:49:20 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <2194.1477346393.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Mon, 24 Oct 2016 17:59:53 -0400 Message-ID: <2195.1477346393@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 Fabien COELHO writes: >> An alternative that would be worth considering is to adopt a uniform >> rule of // for line-ending comments and /* for all other uses. > Why not. As far as comments are concerned, editors usually highlight them > in some color, and my eyes get used to the comment color, so the simpler & > shorter the better, really. >> We'd have to teach pgindent about that, and I dunno how hard that is. > Maybe it is enough to just to turn "/* no-nl */" to "// no-nl" in > pgindent's post_indent, but probably I'm too naïve:-) Well, IMO the point of making that change would be to buy an additional three characters of space for the comment before it wraps. So I'd suspect that post-processing is too late. But I've not looked into pgindent to see where the decisions are made exactly. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers