Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j6z29-0002OF-H7 for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2020 15:55:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6z28-0002uu-2Q for pgsql-hackers@arkaria.postgresql.org; Wed, 26 Feb 2020 15:55:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6z27-0002un-QB for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2020 15:55:35 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j6z23-0001DQ-Az for pgsql-hackers@lists.postgresql.org; Wed, 26 Feb 2020 15:55:35 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 01QFtPmv009879; Wed, 26 Feb 2020 10:55:25 -0500 From: Tom Lane To: Michael Paquier cc: Magnus Hagander , Daniel Gustafsson , Dagfinn Ilmari =?iso-8859-1?Q?Manns=E5ker?= , PostgreSQL Developers Subject: Re: [PATCH] pg_upgrade: report the reason for failing to open the cluster version file In-reply-to: <20200226093551.GA106669@paquier.xyz> References: <87pne2w98h.fsf@wibble.ilmari.org> <44115C15-EE49-4BDE-A976-2901384B5E60@yesql.se> <87mu96w7c5.fsf@wibble.ilmari.org> <20200226014844.GF17153@paquier.xyz> <2760811A-9AF4-4725-8A8A-061940CCF962@yesql.se> <20200226093551.GA106669@paquier.xyz> Comments: In-reply-to Michael Paquier message dated "Wed, 26 Feb 2020 18:35:51 +0900" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9877.1582732525.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 26 Feb 2020 10:55:25 -0500 Message-ID: <9878.1582732525@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Michael Paquier writes: > On Wed, Feb 26, 2020 at 10:06:38AM +0100, Magnus Hagander wrote: >> +1, seems like that would be a regression in value. > Having more generic messages is less work for translators, we have > PG_VERSION in the file name, and that's more complicated to translate > in both French and Japanese. No idea about other languages. Just looking at the committed diff, it seems painfully obvious that these two messages were written by different people who weren't talking to each other. Why aren't they more alike? Given pg_fatal("could not open version file \"%s\": %m\n", ver_filename); (which seems fine to me), I think the second ought to be pg_fatal("could not parse version file \"%s\"\n", ver_filename); The wording as it stands: pg_fatal("could not parse PG_VERSION file from \"%s\"\n", cluster->= pgdata); could be criticized on more grounds than just that it's pointlessly different from the adjacent message: it doesn't follow the style guideline about saying what each mentioned object is. You could fix that maybe with s/from/from directory/, but I think this construction is unfortunate and overly verbose already. regards, tom lane