Re: Re: [COMMITTERS] pgsql: Run pgindent on 9.2 source tree in preparation for first 9.3

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: [COMMITTERS] pgsql: Run pgindent on 9.2 source tree in preparation for first 9.3
Date: 2012-07-05 01:48:15
Message-ID: 20120705014815.GI5578@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Tue, Jun 12, 2012 at 02:40:09PM -0400, Robert Haas wrote:
> On Tue, Jun 12, 2012 at 2:02 PM, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
> > On Tue, Jun 12, 2012 at 01:50:48PM -0400, Noah Misch wrote:
> >> On Mon, Jun 11, 2012 at 05:57:41PM -0400, Alvaro Herrera wrote:
> >> > What about something like this in the root of the tree:
> >> > find . -name \*.pl -o -name \*.pm | xargs perltidy -b -bl -nsfs -naws -l=100 -ole=unix
> >> >
> >> > There are files all over the place.  The file that would most be
> >> > affected with one run of this is the ECPG grammar generator.
> >> >
> >> > I checked the "-et=4" business (which is basically entab).  We're pretty
> >> > inconsistent about tabs in perl code it seems; some files use tabs
> >> > others use spaces.  Honestly I would just settle on what we use on C
> >> > files, even if the Perl devs don't recommend it "because of
> >> > maintainability and portability".  I mean if it works well for us for C
> >> > code, why would it be a problem in Perl code?  However, I don't write
> >> > much of that Perl code myself.
> >>
> >> +1 for formatting all our Perl scripts and for including -et=4.  Since that
> >> will rewrite currently-tidy files anyway, this is a good time to audit our
> >> perltidy settings.
> >
> > OK, another open question is whether we should do any of these changes
> > now for 9.2/9.3 or wait for 9.3/9.4?
>
> I don't think it matters very much - very few commits touch those perl
> scripts. If we have a consensus, I think it's fine to do it now, or
> even after we branch.

Done. Run on HEAD and 9.2 --- sorry for the delay.

--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ It's impossible for everything to be true. +

In response to

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2012-07-05 01:59:01 pgsql: Fix missing regex slash that caused perltidy to get confused on
Previous Message Bruce Momjian 2012-07-05 01:48:03 pgsql: Run newly-configured perltidy script on Perl files.

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Geoghegan 2012-07-05 01:49:36 Re: embedded list v2
Previous Message Tatsuo Ishii 2012-07-05 01:04:53 Re: Patch: add conversion from pg_wchar to multibyte