Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dM3Jh-0004Sh-Rw for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jun 2017 02:18:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dM3Jh-0006Hi-5c for pgsql-hackers@arkaria.postgresql.org; Sat, 17 Jun 2017 02:18:25 +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 1dM3Jf-0006GV-RI for pgsql-hackers@postgresql.org; Sat, 17 Jun 2017 02:18:23 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dM3Jb-00057G-8o for pgsql-hackers@postgresql.org; Sat, 17 Jun 2017 02:18:23 +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 v5H2I7LR023383; Fri, 16 Jun 2017 22:18:07 -0400 From: Tom Lane To: Piotr Stefaniak cc: Bruce Momjian , Andres Freund , Peter Eisentraut , Alvaro Herrera , Robert Haas , "Stephen Frost" , "pgsql-hackers@postgresql.org" Subject: Re: Preliminary results for proposed new pgindent implementation In-reply-to: References: <20170519173111.zp6igkcg53egdy4s@alvherre.pgsql> <29275.1497624664@sss.pgh.pa.us> <8827.1497633050@sss.pgh.pa.us> <20170616171946.qqy5tapovsamkxyg@alap3.anarazel.de> <9900.1497634441@sss.pgh.pa.us> <20170616180534.cdpduuq5a4twxuru@alap3.anarazel.de> <12302.1497637380@sss.pgh.pa.us> <20170616184238.GA5081@momjian.us> <20170616185406.jpwq6o6ghpvprxmi@alap3.anarazel.de> <20170616190441.GB5081@momjian.us> <29590.1497643007@sss.pgh.pa.us> <12517.1497650535@sss.pgh.pa.us> Comments: In-reply-to Piotr Stefaniak message dated "Fri, 16 Jun 2017 22:52:53 -0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23381.1497665887.1@sss.pgh.pa.us> Date: Fri, 16 Jun 2017 22:18:07 -0400 Message-ID: <23382.1497665887@sss.pgh.pa.us> 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 Piotr Stefaniak writes: > On 2017-06-17 00:02, Tom Lane wrote: >> What I'm testing with right now has just four differences from your repo: > There are also the "portability fixes" and they're the main problem. Fair enough. > I've simply removed things like capsicum or __FBSDID() because I thought > it wouldn't be a problem since Postgres will have its own copy of indent > anyway (so that its behavior is not a moving target). I can ifdef-out > them instead of removing entirely, I just didn't think it was important > anymore. We should be able to deal with those via some #define hackery, no? > I expect to be in trouble for replacing err() and errx(), though. Understood. I think we could deal with this by providing err() and errx() in a support file that would be part of our distribution but not yours. 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