pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: pgindent run next week?
Date: Wed, 22 May 2019 15:27:18 -0400
Message-ID: <10207.1558553238@sss.pgh.pa.us> (raw)
In-Reply-To: <cbba9b77-021d-5f22-9e4d-3c870d5c2604@2ndquadrant.com>
References: <16296.1558103386@sss.pgh.pa.us>
	<20190517172700.bqb4oytgng4tshvm@alap3.anarazel.de>
	<7004.1558475214@sss.pgh.pa.us>
	<cbba9b77-021d-5f22-9e4d-3c870d5c2604@2ndquadrant.com>

Peter Eisentraut <peter.eisentraut@2ndquadrant.com> writes:
> In my experience, changes to function declarations in header files
> happen a lot in forks.  So applying the pgindent change to backbranches
> would cause some trouble.

> On the other hand, it seems to me that patches that we backpatch between
> PostgreSQL branches should normally not touch function declarations in
> header files, since that would be an ABI break.  So by not applying the
> pgindent change in backbranches we don't lose anything.  And so it would
> be better to just leave things as they are.

Maybe we could wait awhile and see how much pain we find in back-patching
across this change.  I have to admit that the v10 pgindent changes have
not been as painful as I expected them to be, so maybe this round will
also prove to be just an annoyance not a major PITA for that.

Another thought is that, at least in principle, we could re-indent only
.c files not .h files in the back branches.  But I'm not sure I believe
your argument that forks are more likely to touch exposed extern
declarations than local static declarations.

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <10207.1558553238@sss.pgh.pa.us>
Permalink:  ../10207.1558553238@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10207.1558553238@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, peter.eisentraut@2ndquadrant.com, andres@anarazel.de
  Subject: Re: pgindent run next week?
  In-Reply-To: <10207.1558553238@sss.pgh.pa.us>
  References: <16296.1558103386@sss.pgh.pa.us> <20190517172700.bqb4oytgng4tshvm@alap3.anarazel.de> <7004.1558475214@sss.pgh.pa.us> <cbba9b77-021d-5f22-9e4d-3c870d5c2604@2ndquadrant.com> <10207.1558553238@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox