From: Bruce Momjian <bruce@momjian.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>
Cc: pgsql-hackers@postgresql.org <pgsql-hackers@postgresql.org>
Subject: Re: pgsql: pg_upgrade: simplify code layout in a few places
Date: Fri, 5 Jan 2018 14:49:48 -0500
Message-ID: <20180105194948.GC15186@momjian.us> (raw)
In-Reply-To: <CA+Tgmob6cZznp7zsA=i8ByaBM3wRe1BMyi1GNs8Or1iZ5AdXKg@mail.gmail.com>
References: <20180105192454.GA15186@momjian.us>
<20180105193212.dnnz5asze64lgrfj@alvherre.pgsql>
<CA+Tgmob6cZznp7zsA=i8ByaBM3wRe1BMyi1GNs8Or1iZ5AdXKg@mail.gmail.com>
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 +
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-committers@postgresql.org
Cc: bruce@momjian.us, robertmhaas@gmail.com, alvherre@alvh.no-ip.org, pgsql-hackers@postgresql.org
Subject: Re: pgsql: pg_upgrade: simplify code layout in a few places
In-Reply-To: <20180105194948.GC15186@momjian.us>
References: <20180105192454.GA15186@momjian.us> <20180105193212.dnnz5asze64lgrfj@alvherre.pgsql> <CA+Tgmob6cZznp7zsA=i8ByaBM3wRe1BMyi1GNs8Or1iZ5AdXKg@mail.gmail.com> <20180105194948.GC15186@momjian.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