pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: pg_upgrade: simplify code layout in a few places
17+ messages / 5 participants
[nested] [flat]
* pgsql: pg_upgrade: simplify code layout in a few places
@ 2018-01-05 19:11 Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
0 siblings, 1 reply; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:11 UTC (permalink / raw)
To: pgsql-committers
pg_upgrade: simplify code layout in a few places
Backpatch-through: 9.4 (9.3 didn't need improving)
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/959ee6d267fb24e667fc64e9837a376e236e84a5
Modified Files
--------------
src/bin/pg_upgrade/exec.c | 2 --
src/bin/pg_upgrade/server.c | 8 ++------
2 files changed, 2 insertions(+), 8 deletions(-)
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
@ 2018-01-05 19:20 ` Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:24 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 23:51 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
0 siblings, 2 replies; 17+ messages in thread
From: Robert Haas @ 2018-01-05 19:20 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> pg_upgrade: simplify code layout in a few places
>
> Backpatch-through: 9.4 (9.3 didn't need improving)
Hmm. We don't normally do things like this, because it breaks translatability.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
@ 2018-01-05 19:24 ` Bruce Momjian <bruce@momjian.us>
2018-01-05 19:31 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:32 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Alvaro Herrera <alvherre@alvh.no-ip.org>
1 sibling, 2 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:24 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 02:20:59PM -0500, Robert Haas wrote:
> On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > pg_upgrade: simplify code layout in a few places
> >
> > Backpatch-through: 9.4 (9.3 didn't need improving)
>
> Hmm. We don't normally do things like this, because it breaks translatability.
Oh, you mean the 'if()' statement? If so, I will revert that and add a
comment so I don't do it again in that place.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:24 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
@ 2018-01-05 19:31 ` Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:46 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
1 sibling, 1 reply; 17+ messages in thread
From: Robert Haas @ 2018-01-05 19:31 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 2:24 PM, Bruce Momjian <bruce@momjian.us> wrote:
> On Fri, Jan 5, 2018 at 02:20:59PM -0500, Robert Haas wrote:
>> On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
>> > pg_upgrade: simplify code layout in a few places
>> >
>> > Backpatch-through: 9.4 (9.3 didn't need improving)
>>
>> Hmm. We don't normally do things like this, because it breaks translatability.
>
> Oh, you mean the 'if()' statement? If so, I will revert that and add a
> comment so I don't do it again in that place.
Yeah.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:24 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:31 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
@ 2018-01-05 19:46 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:46 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 02:31:51PM -0500, Robert Haas wrote:
> On Fri, Jan 5, 2018 at 2:24 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > On Fri, Jan 5, 2018 at 02:20:59PM -0500, Robert Haas wrote:
> >> On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> >> > pg_upgrade: simplify code layout in a few places
> >> >
> >> > Backpatch-through: 9.4 (9.3 didn't need improving)
> >>
> >> Hmm. We don't normally do things like this, because it breaks translatability.
> >
> > Oh, you mean the 'if()' statement? If so, I will revert that and add a
> > comment so I don't do it again in that place.
>
> Yeah.
Thanks, done.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:24 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
@ 2018-01-05 19:32 ` Alvaro Herrera <alvherre@alvh.no-ip.org>
2018-01-05 19:37 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
1 sibling, 1 reply; 17+ messages in thread
From: Alvaro Herrera @ 2018-01-05 19:32 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; +Cc: Robert Haas <robertmhaas@gmail.com>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Bruce Momjian wrote:
> On Fri, Jan 5, 2018 at 02:20:59PM -0500, Robert Haas wrote:
> > On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > > pg_upgrade: simplify code layout in a few places
> > >
> > > Backpatch-through: 9.4 (9.3 didn't need improving)
> >
> > Hmm. We don't normally do things like this, because it breaks translatability.
>
> Oh, you mean the 'if()' statement? If so, I will revert that and add a
> comment so I don't do it again in that place.
See 837255cc81fb59b12f5a70ac2a8a9850bccf13e0. I don't think adding
comments to every single place where this could be done (which is many
places, not just in pg_upgrade) is a good idea.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:24 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:32 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Alvaro Herrera <alvherre@alvh.no-ip.org>
@ 2018-01-05 19:37 ` Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:49 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 17+ messages in thread
From: Robert Haas @ 2018-01-05 19:37 UTC (permalink / raw)
To: Alvaro Herrera <alvherre@alvh.no-ip.org>; +Cc: Bruce Momjian <bruce@momjian.us>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 2:32 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> Bruce Momjian wrote:
>> On Fri, Jan 5, 2018 at 02:20:59PM -0500, Robert Haas wrote:
>> > On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
>> > > pg_upgrade: simplify code layout in a few places
>> > >
>> > > Backpatch-through: 9.4 (9.3 didn't need improving)
>> >
>> > Hmm. We don't normally do things like this, because it breaks translatability.
>>
>> Oh, you mean the 'if()' statement? If so, I will revert that and add a
>> comment so I don't do it again in that place.
>
> See 837255cc81fb59b12f5a70ac2a8a9850bccf13e0. I don't think adding
> comments to every single place where this could be done (which is many
> places, not just in pg_upgrade) is a good idea.
It's also documented, of course.
https://www.postgresql.org/docs/devel/static/nls-programmer.html#NLS-GUIDELINES
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:24 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:32 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Alvaro Herrera <alvherre@alvh.no-ip.org>
2018-01-05 19:37 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
@ 2018-01-05 19:49 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:49 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 02:37:58PM -0500, Robert Haas wrote:
> On Fri, Jan 5, 2018 at 2:32 PM, Alvaro Herrera <alvherre@alvh.no-ip.org> wrote:
> > Bruce Momjian wrote:
> >> On Fri, Jan 5, 2018 at 02:20:59PM -0500, Robert Haas wrote:
> >> > On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> >> > > pg_upgrade: simplify code layout in a few places
> >> > >
> >> > > Backpatch-through: 9.4 (9.3 didn't need improving)
> >> >
> >> > Hmm. We don't normally do things like this, because it breaks translatability.
> >>
> >> Oh, you mean the 'if()' statement? If so, I will revert that and add a
> >> comment so I don't do it again in that place.
> >
> > See 837255cc81fb59b12f5a70ac2a8a9850bccf13e0. I don't think adding
> > comments to every single place where this could be done (which is many
> > places, not just in pg_upgrade) is a good idea.
>
> It's also documented, of course.
>
> https://www.postgresql.org/docs/devel/static/nls-programmer.html#NLS-GUIDELINES
OK, C comment removed.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
@ 2018-01-05 23:51 ` Andres Freund <andres@anarazel.de>
2018-01-05 23:57 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
1 sibling, 1 reply; 17+ messages in thread
From: Andres Freund @ 2018-01-05 23:51 UTC (permalink / raw)
To: Robert Haas <robertmhaas@gmail.com>; +Cc: Bruce Momjian <bruce@momjian.us>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On 2018-01-05 14:20:59 -0500, Robert Haas wrote:
> On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > pg_upgrade: simplify code layout in a few places
> >
> > Backpatch-through: 9.4 (9.3 didn't need improving)
>
> Hmm. We don't normally do things like this, because it breaks translatability.
Also, leaving translatability aside, why was *any* of this backpatched?
Unless there's very good maintainability reasons we normally don't
backpatch minor refactorings?
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 23:51 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
@ 2018-01-05 23:57 ` Bruce Momjian <bruce@momjian.us>
2018-01-06 00:00 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
0 siblings, 1 reply; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 23:57 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Robert Haas <robertmhaas@gmail.com>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 03:51:15PM -0800, Andres Freund wrote:
> On 2018-01-05 14:20:59 -0500, Robert Haas wrote:
> > On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > > pg_upgrade: simplify code layout in a few places
> > >
> > > Backpatch-through: 9.4 (9.3 didn't need improving)
> >
> > Hmm. We don't normally do things like this, because it breaks translatability.
>
> Also, leaving translatability aside, why was *any* of this backpatched?
> Unless there's very good maintainability reasons we normally don't
> backpatch minor refactorings?
Tom has preferred that I backpatch all safe patches so we keep that code
consistent so we can backpatch other things more easily.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 23:51 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
2018-01-05 23:57 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
@ 2018-01-06 00:00 ` Andres Freund <andres@anarazel.de>
2018-01-06 01:39 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 17+ messages in thread
From: Andres Freund @ 2018-01-06 00:00 UTC (permalink / raw)
To: Bruce Momjian <bruce@momjian.us>; Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Robert Haas <robertmhaas@gmail.com>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On 2018-01-05 18:57:55 -0500, Bruce Momjian wrote:
> On Fri, Jan 5, 2018 at 03:51:15PM -0800, Andres Freund wrote:
> > On 2018-01-05 14:20:59 -0500, Robert Haas wrote:
> > > On Fri, Jan 5, 2018 at 2:11 PM, Bruce Momjian <bruce@momjian.us> wrote:
> > > > pg_upgrade: simplify code layout in a few places
> > > >
> > > > Backpatch-through: 9.4 (9.3 didn't need improving)
> > >
> > > Hmm. We don't normally do things like this, because it breaks translatability.
> >
> > Also, leaving translatability aside, why was *any* of this backpatched?
> > Unless there's very good maintainability reasons we normally don't
> > backpatch minor refactorings?
>
> Tom has preferred that I backpatch all safe patches so we keep that code
> consistent so we can backpatch other things more easily.
I've a hard time believing this. Tom?
Greetings,
Andres Freund
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 23:51 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
2018-01-05 23:57 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-06 00:00 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
@ 2018-01-06 01:39 ` Tom Lane <tgl@sss.pgh.pa.us>
2018-01-06 02:10 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
0 siblings, 1 reply; 17+ messages in thread
From: Tom Lane @ 2018-01-06 01:39 UTC (permalink / raw)
To: Andres Freund <andres@anarazel.de>; +Cc: Bruce Momjian <bruce@momjian.us>; Robert Haas <robertmhaas@gmail.com>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Andres Freund <andres@anarazel.de> writes:
> On 2018-01-05 18:57:55 -0500, Bruce Momjian wrote:
>> On Fri, Jan 5, 2018 at 03:51:15PM -0800, Andres Freund wrote:
>>> Also, leaving translatability aside, why was *any* of this backpatched?
>> Tom has preferred that I backpatch all safe patches so we keep that code
>> consistent so we can backpatch other things more easily.
> I've a hard time believing this. Tom?
I've been known to back-patch stuff just to keep branches consistent,
but it's always a judgement call. In this case I wouldn't have done it
(even if the patch were a good idea in HEAD) because it would cause
churn in translatable messages in the back branches. Also, the case
for cosmetic back-patching is only strong when a particular file is
already pretty similar across all branches, and I'm not sure that
holds for pg_upgrade.
regards, tom lane
^ permalink raw reply [nested|flat] 17+ messages in thread
* Re: pgsql: pg_upgrade: simplify code layout in a few places
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 23:51 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
2018-01-05 23:57 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-06 00:00 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
2018-01-06 01:39 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Tom Lane <tgl@sss.pgh.pa.us>
@ 2018-01-06 02:10 ` Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-06 02:10 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Andres Freund <andres@anarazel.de>; Robert Haas <robertmhaas@gmail.com>; pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
On Fri, Jan 5, 2018 at 08:39:46PM -0500, Tom Lane wrote:
> Andres Freund <andres@anarazel.de> writes:
> > On 2018-01-05 18:57:55 -0500, Bruce Momjian wrote:
> >> On Fri, Jan 5, 2018 at 03:51:15PM -0800, Andres Freund wrote:
> >>> Also, leaving translatability aside, why was *any* of this backpatched?
>
> >> Tom has preferred that I backpatch all safe patches so we keep that code
> >> consistent so we can backpatch other things more easily.
>
> > I've a hard time believing this. Tom?
>
> I've been known to back-patch stuff just to keep branches consistent,
> but it's always a judgement call. In this case I wouldn't have done it
> (even if the patch were a good idea in HEAD) because it would cause
> churn in translatable messages in the back branches. Also, the case
> for cosmetic back-patching is only strong when a particular file is
> already pretty similar across all branches, and I'm not sure that
> holds for pg_upgrade.
There was a time when pg_upgrade was similar in all branches and
churning a lot with fixes, so I was going on that plan. At this point I
don't think that is true anymore, so maybe we can switch just to head
and PG 10 on this.
--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 17+ messages in thread
* pgsql: pg_upgrade: simplify code layout in a few places
@ 2018-01-05 19:11 Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:11 UTC (permalink / raw)
To: pgsql-committers
pg_upgrade: simplify code layout in a few places
Backpatch-through: 9.4 (9.3 didn't need improving)
Branch
------
REL_10_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/b3b058539c27c36a1b28c268e9179660ef0b0293
Modified Files
--------------
src/bin/pg_upgrade/exec.c | 2 --
src/bin/pg_upgrade/server.c | 8 ++------
2 files changed, 2 insertions(+), 8 deletions(-)
^ permalink raw reply [nested|flat] 17+ messages in thread
* pgsql: pg_upgrade: simplify code layout in a few places
@ 2018-01-05 19:11 Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:11 UTC (permalink / raw)
To: pgsql-committers
pg_upgrade: simplify code layout in a few places
Backpatch-through: 9.4 (9.3 didn't need improving)
Branch
------
REL9_6_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/1d135657a308e920d92df35e3453ed1725dbbc0d
Modified Files
--------------
src/bin/pg_upgrade/exec.c | 2 --
1 file changed, 2 deletions(-)
^ permalink raw reply [nested|flat] 17+ messages in thread
* pgsql: pg_upgrade: simplify code layout in a few places
@ 2018-01-05 19:11 Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:11 UTC (permalink / raw)
To: pgsql-committers
pg_upgrade: simplify code layout in a few places
Backpatch-through: 9.4 (9.3 didn't need improving)
Branch
------
REL9_5_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/6c31ac1dd3a376fc8e49092e6036c0b1aa60c2ba
Modified Files
--------------
src/bin/pg_upgrade/exec.c | 2 --
1 file changed, 2 deletions(-)
^ permalink raw reply [nested|flat] 17+ messages in thread
* pgsql: pg_upgrade: simplify code layout in a few places
@ 2018-01-05 19:11 Bruce Momjian <bruce@momjian.us>
0 siblings, 0 replies; 17+ messages in thread
From: Bruce Momjian @ 2018-01-05 19:11 UTC (permalink / raw)
To: pgsql-committers
pg_upgrade: simplify code layout in a few places
Backpatch-through: 9.4 (9.3 didn't need improving)
Branch
------
REL9_4_STABLE
Details
-------
https://git.postgresql.org/pg/commitdiff/9162560bc3ac36b515e222f35db1efbb9ccfab83
Modified Files
--------------
contrib/pg_upgrade/exec.c | 2 --
1 file changed, 2 deletions(-)
^ permalink raw reply [nested|flat] 17+ messages in thread
end of thread, other threads:[~2018-01-06 02:10 UTC | newest]
Thread overview: 17+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:20 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:24 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:31 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:46 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:32 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Alvaro Herrera <alvherre@alvh.no-ip.org>
2018-01-05 19:37 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Robert Haas <robertmhaas@gmail.com>
2018-01-05 19:49 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 23:51 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
2018-01-05 23:57 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-06 00:00 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Andres Freund <andres@anarazel.de>
2018-01-06 01:39 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Tom Lane <tgl@sss.pgh.pa.us>
2018-01-06 02:10 ` Re: pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
2018-01-05 19:11 pgsql: pg_upgrade: simplify code layout in a few places Bruce Momjian <bruce@momjian.us>
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