Re: [COMMITTERS] pgsql: pgindent run for 9.4

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <bruce(at)momjian(dot)us>
Cc: Kevin Grittner <kgrittn(at)ymail(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Michael Meskes <meskes(at)postgresql(dot)org>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: pgindent run for 9.4
Date: 2014-05-06 21:35:15
Message-ID: 27340.1399412115@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

Bruce Momjian <bruce(at)momjian(dot)us> writes:
> Ah, found it. There is an excludes pattern file list I had forgotten
> about; it has:

> /s_lock\.h$
> /ecpg/test/expected/
> /snowball/libstemmer/
> /ecpg/include/(sqlda|sqltypes)\.h$
> /ecpg/include/preproc/struct\.h$
> /pl/plperl/ppport\.h$

Ah, so you've been excluding some of the ecpg/include/ header files but
not sqlca.h.

> I am thinking I should back out the tab/comment changes in those files
> in the back branches, though I would then need to adjust the ecpg
> regression tests. In practice, these files are rarely patched, so it
> might be fine to just leave them alone.

No, let's not back them out. The real question here is why sqlca.h is
treated differently from those other three. At least in HEAD, I'd be
inclined to pgindent all of ecpg/include/ and just deal with any ensuing
test fallout. As long as updating the expected files is part of your
pgindent procedure, why not?

IOW, I get the reasons for those other exclusions:

s_lock.h: lots of inline ASM which pgindent doesn't deal well with
/snowball/libstemmer/: upstream code not maintained by us
ppport.h: ditto

But I don't see the reason why we shouldn't expect ecpg's headers to
conform to our layout rules.

regards, tom lane

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Simon Riggs 2014-05-06 21:51:57 pgsql: pg_basebackup streaming: adjust version check msg
Previous Message Tom Lane 2014-05-06 21:26:02 Re: [COMMITTERS] pgsql: pgindent run for 9.4

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2014-05-06 21:54:19 Re: proposal: Set effective_cache_size to greater of .conf value, shared_buffers
Previous Message David E. Wheeler 2014-05-06 21:31:23 Re: default opclass for jsonb (was Re: Call for GIST/GIN/SP-GIST opclass documentation)