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 1jF12C-0007md-LH for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2020 19:40:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jF12B-0006L1-7B for pgsql-hackers@arkaria.postgresql.org; Thu, 19 Mar 2020 19:40:51 +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 1jF129-0006Ku-FG for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2020 19:40:50 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jF122-0002p3-1n for pgsql-hackers@lists.postgresql.org; Thu, 19 Mar 2020 19:40:49 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id CA6295C0222; Thu, 19 Mar 2020 15:40:39 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Thu, 19 Mar 2020 15:40:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ilmari.org; h= from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm1; bh= d+JfzkZTAPVeagy9jNDQ/hYkUkF9jakTUjvEUyHxmNE=; b=Sa+NBZSAvC3gi9KE ehIw5r4wbjie3qK8/vwE6OlLVyeWXu1VloLMGLVMmg6wfz+Ij+oaZ9Ljp0XsZt+S 3lqZ9+ZPXrJF0ck0TjzccnA8cqCrpc7SKBRGhGqDUCW2a5Au74tzH8LhgyEj/A4q uLEiSQ2oN2ArjnNPfIL0RL7J5QIkqrH2v+IzUIhQIkCc0YiFePArpmw4+D7V6l7k xSRrsfY68lwIHZHQQIcFXFBWymGL77s9LMlc7MtSTfupa3uq0ul6iERDx41aO9ZS 4kSv5oozCEJEh0eSsl98Ne6L1T/yQtQa+an0KpSoop3grWY3JTkl9qRch6Fky5RT gh+hFg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=d+JfzkZTAPVeagy9jNDQ/hYkUkF9jakTUjvEUyHxm NE=; b=sh6lkz230omkR9NesuTAD9VqkxvCrDmklRIZ3S0jQ8C8FZvuWtdrBmQbL TjSx8YuQuJ8dAszOMLuqWjrLzuOSkJ4YBXbPVOjIqBLtuFpN1UqbxAK/DIDAgKJS E4P2YKk0AXwyMnEIDdm60D2X9IXKqIO1AlanqVw3TV0jAtKj+hGrglGktctOTkPw 4ZNJEN6MSxIbAroQM5k9BJZMpIpl4grTBc8WLKS8WPp0jhgqcdo75aMpJZZFzyaG yjEhJlrctlgT5kk4oeckpkIOWidQzVbd3cpFJVrygbrZ3AkDpY3Q8JxpOsitgJ0O qLRQ5t0Tfh4aIqYusEFlgwRbRlJow== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudefledguddvjecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculddujedmnecujfgurhephffvufhfffgjkfgfgggtgfesthekredt tderjeenucfhrhhomhepihhlmhgrrhhisehilhhmrghrihdrohhrghculdffrghgfhhinh hnucfklhhmrghrihcuofgrnhhnshonkhgvrhdmnecukfhppeegiedrgeefrdduhedrvdeh vdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehilh hmrghrihesihhlmhgrrhhirdhorhhg X-ME-Proxy: Received: from wibble.ilmari.org (wibble.ilmari.org [46.43.15.252]) by mail.messagingengine.com (Postfix) with ESMTPA id 4DC103060FE7; Thu, 19 Mar 2020 15:40:38 -0400 (EDT) From: ilmari@ilmari.org (Dagfinn Ilmari =?utf-8?Q?Manns=C3=A5ker?=) To: Bruce Momjian Cc: Tom Lane , Michael Paquier , Magnus Hagander , Daniel Gustafsson , PostgreSQL Developers Subject: Re: [PATCH] pg_upgrade: report the reason for failing to open the cluster version file 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> <9878.1582732525@sss.pgh.pa.us> <87k149w673.fsf@wibble.ilmari.org> <20200319192304.GA28431@momjian.us> Date: Thu, 19 Mar 2020 19:40:35 +0000 In-Reply-To: <20200319192304.GA28431@momjian.us> (Bruce Momjian's message of "Thu, 19 Mar 2020 15:23:04 -0400") Message-ID: <87o8ssuo98.fsf@wibble.ilmari.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Bruce Momjian writes: > On Wed, Feb 26, 2020 at 06:32:00PM +0000, Dagfinn Ilmari Mannsåker wrote: >> Tom Lane writes: >> >> > 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); >> >> Good point. Patch attached. > > Patch applied, and other adjustments: Thanks! - ilmari -- - Twitter seems more influential [than blogs] in the 'gets reported in the mainstream press' sense at least. - Matt McLeod - That'd be because the content of a tweet is easier to condense down to a mainstream media article. - Calle Dybedahl