Re: Running pgindent

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Running pgindent
Date: 2013-05-29 22:21:30
Message-ID: 20130529222130.GB5635@momjian.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, May 29, 2013 at 05:56:32PM -0400, Alvaro Herrera wrote:
> Bruce Momjian escribió:
>
> > Done. This was the first run of the Perl-based pgindent script. There
> > was a lot of code churn in this run as the paragraphs are slightly
> > wider. Also, I saw some outdenting of long lines, rather than allowing
> > them to go past 80 characters, but it seemed minimal. If others see
> > problems, we can adjust the script and run it again.
>
> It seems a bit troubling to me that the underlying indent binary seems
> to have behaved slightly different. I think this will cause problems
> down the road when we try to backpatch stuff that has been indented
> differently on the older branches.

Well, we have to figure out why it is behaving differently. If I had to
guess it would be that the parameters to BSD indent were somehow
different, though I thought Andrew copied them directly.

> I wonder if it would be best to inflict pgindent with the new script upon
> the old active branches as well, to avoid this problem. (It might cause
> other problems, of course.)

Wow, uh, yeah, I guess we could do that. I will await more feedback.

--
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joe Conway 2013-05-29 22:31:18 Re: pg_dump with postgis extension dumps rules separately
Previous Message Alvaro Herrera 2013-05-29 21:56:32 Re: Running pgindent