pgindent (was Re: [COMMITTERS] pgsql: Preventive maintenance in advance of pgindent run.)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Piotr Stefaniak <postgres@piotr-stefaniak.me>
Cc: Alvaro Herrera <alvherre@2ndquadrant.com>,
Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
"pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2017-05-17T18:31:12Z
Lists: pgsql-hackers
Piotr Stefaniak <postgres@piotr-stefaniak.me> writes: > On 2017-05-17 19:16, Alvaro Herrera wrote: >> We have someone who has studied the BSD indent code and even sent us >> patches to fix quite a few bugs, but we've largely ignored his efforts >> so far. I propose we take that indent as part of our repo, and patch it >> to our preferences. > That, I assume, would be me. Coincidentally, I'm about to push my fixes > upstream (FreeBSD). Before that happens, my changes can be obtained from > https://github.com/pstef/freebsd_indent and tested, if anyone wishes. Yes, I was just reviewing those threads. IIUC, the current proposal is to adopt FreeBSD's version of indent as being less buggy and better maintained than NetBSD's, and then patch it as necessary. We'd put off the decision what to do exactly until a more suitable time, but I think that time is now. What I think we ought to do is go ahead and indent the tree with current pgindent, and then we have a basis for experimenting with replacement versions and seeing what they'll do differently. If we can make a decision and adopt any changes within the next few weeks, I think that that timing will be about the least pain we can hope for. If we do anything with as much impact as changing the indentation rule for string continuations, I will certainly vote for running the new pgindent over the back branches too. I still bear the scars of dealing with the comment-reflowing changes that Bruce put in circa 8.1 --- that broke just about every back-patching effort for the next five years. I don't want to go through that again. regards, tom lane
Commits
-
Manually un-break a few URLs that pgindent used to insist on splitting.
- 780b3a4c43fd 10.0 landed
-
Remove entab and associated detritus.
- 81f056c7256f 10.0 landed
-
Phase 3 of pgindent updates.
- 382ceffdf7f6 10.0 landed
-
Phase 2 of pgindent updates.
- c7b8998ebbf3 10.0 landed
-
Initial pgindent run with pg_bsd_indent version 2.0.
- e3860ffa4dd0 10.0 landed
-
Adjust pgindent script to use pg_bsd_indent 2.0.
- 8ff6d4ec7840 10.0 landed
-
Final pgindent run with old pg_bsd_indent (version 1.3).
- 9ef2dbefc7fb 10.0 landed
-
Re-run pgindent.
- 651902deb155 10.0 landed
-
Preventive maintenance in advance of pgindent run.
- c079673dcb7f 10.0 cited