Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXY01-0006V3-9A for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jan 2018 19:49:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eXY00-0005dv-RS for pgsql-hackers@arkaria.postgresql.org; Fri, 05 Jan 2018 19:49:52 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eXY00-0005LX-G8 for pgsql-hackers@lists.postgresql.org; Fri, 05 Jan 2018 19:49:52 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eXXzx-0000hq-CT for pgsql-hackers@postgresql.org; Fri, 05 Jan 2018 19:49:50 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1eXXzw-0007H2-7c; Fri, 05 Jan 2018 14:49:48 -0500 Date: Fri, 5 Jan 2018 14:49:48 -0500 From: Bruce Momjian To: Robert Haas Cc: Alvaro Herrera , "pgsql-hackers@postgresql.org" Subject: Re: pgsql: pg_upgrade: simplify code layout in a few places Message-ID: <20180105194948.GC15186@momjian.us> References: <20180105192454.GA15186@momjian.us> <20180105193212.dnnz5asze64lgrfj@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Jan 5, 2018 at 02:37:58PM -0500, Robert Haas wrote: > On Fri, Jan 5, 2018 at 2:32 PM, Alvaro Herrera 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 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 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 +