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 1lgwzN-0000rt-Dx for pgsql-committers@arkaria.postgresql.org; Wed, 12 May 2021 22:05:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lgwzM-0006SN-Ao for pgsql-committers@arkaria.postgresql.org; Wed, 12 May 2021 22:05:56 +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 1lgwzM-0006SF-4d for pgsql-committers@lists.postgresql.org; Wed, 12 May 2021 22:05:56 +0000 Received: from [66.111.4.237] (helo=forward3-smtp.messagingengine.com) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgwzJ-00017j-5b for pgsql-committers@lists.postgresql.org; Wed, 12 May 2021 22:05:55 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailforward.nyi.internal (Postfix) with ESMTP id 886971940571; Wed, 12 May 2021 18:05:41 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Wed, 12 May 2021 18:05:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=I/LN5Vm3bxh6bI3ni5mYE1kd0ugdHe2qmhU47X2UY NM=; b=SFPG1vg9NpArb4snrEe0Flc7YBYe12z9a9/pJuxVfy+cDVQiDKTfnNHNl N+tex+900YKlOpCzps3XMg6ulo2cbPIe0SfHjOVHp0Le+JqZRBC5f4hiE7HxRYOo l09E6a8f+aFxm/ZqK7ql3DgqiaS4SKW29WhU1PmWNSJdi0jb9t6QAsTXm2GUkVBe q7q80+0pt9UtqES8Dpf3kOZbCpe4EY20g+dfLDu755KC4+WuvUm3QtDHRh0FB+Zm EZhp5PHYJhcREfo3fYJHDYi1IW9KPcIdlOQHhx4GYVd19dbXtzrxRGK5LfwHApwV 2qa0OrIffwQYUtAwtRCTA2Oz6p8ew== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdehfedgtdegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtje ertddtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghr rdgvihhsvghnthhrrghuthesvghnthgvrhhprhhishgvuggsrdgtohhmqeenucggtffrrg htthgvrhhnpeelveehheeuieduieetiedtkeeuteelfeetjeffieffudegvdffvdfftdei vdeukeenucfkphepledurddugedrvdefiedriedvnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsegv nhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Received: from laptop206oxuk.local (p5b0eec3e.dip0.t-ipconnect.de [91.14.236.62]) by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 12 May 2021 18:05:39 -0400 (EDT) Subject: Re: pgsql: Improve wording of some pg_upgrade failure reports. To: Tom Lane , pgsql-committers@lists.postgresql.org References: From: Peter Eisentraut Message-ID: <92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com> Date: Thu, 13 May 2021 00:05:38 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 66.111.4.237 (deferred) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 29.04.21 21:40, Tom Lane wrote: > Improve wording of some pg_upgrade failure reports. > > 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. For example, this @@ -456,10 +458,10 @@ old_11_check_for_sql_identifier_data_type_usage(ClusterInfo *cluster) output_path)) { pg_log(PG_REPORT, "fatal\n"); - pg_fatal("Your installation contains the \"sql_identifier\" data type in user tables\n" - "and/or indexes. The on-disk format for this data type has changed, so this\n" - "cluster cannot currently be upgraded. You can remove the problem tables or\n" - "change the data type to \"name\" and restart the upgrade.\n" + pg_fatal("Your installation contains the \"sql_identifier\" data type in user tables.\n" + "The on-disk format for this data type has changed, so this\n" + "cluster cannot currently be upgraded. You can\n" + "drop the problem columns and restart the upgrade.\n" "A list of the problem columns is in the file:\n" " %s\n\n", output_path); turns a message with uniform line length layout into a message with random line lengths. What is the rationale behind this?