Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgx7M-0001H7-AP for pgsql-committers@arkaria.postgresql.org; Wed, 12 May 2021 22:14:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lgx7L-0001c9-3h for pgsql-committers@arkaria.postgresql.org; Wed, 12 May 2021 22:14:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgx7K-0001c0-TF for pgsql-committers@lists.postgresql.org; Wed, 12 May 2021 22:14:10 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgx7I-0001AW-Jj for pgsql-committers@lists.postgresql.org; Wed, 12 May 2021 22:14:09 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 14CME6r91361792; Wed, 12 May 2021 18:14:06 -0400 From: Tom Lane To: Peter Eisentraut cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Improve wording of some pg_upgrade failure reports. In-reply-to: <92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com> References: <92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com> Comments: In-reply-to Peter Eisentraut message dated "Thu, 13 May 2021 00:05:38 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1361790.1620857646.1@sss.pgh.pa.us> Date: Wed, 12 May 2021 18:14:06 -0400 Message-ID: <1361791.1620857646@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Peter Eisentraut writes: > On 29.04.21 21:40, Tom Lane wrote: >> Don't advocate dropping a whole table when dropping a column would >> serve. While at it, try to make the layout of these messages a >> bit cleaner and more consistent. > I don't understand how this makes the message layout cleaner. The main thing that's cleaner IMO is that it's separated what one could call the primary error message ("Your installation contains FOO.") from the errdetail, which formerly was run onto the same line in some cases, but not others. For translatability purposes, maybe we could consider how to split those texts into separate message strings for each sentence? The detail text is pretty nearly boilerplate and could be unified, I suspect. regards, tom lane