pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Improve wording of some pg_upgrade failure reports.
Date: Thu, 13 May 2021 00:05:38 +0200
Message-ID: <92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com> (raw)
In-Reply-To: <E1lcCWf-0008S3-RE@gemulon.postgresql.org>
References: <E1lcCWf-0008S3-RE@gemulon.postgresql.org>


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?





view thread (3+ messages)  latest in thread

Message-ID: <92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com>
Permalink:  ../92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com/
Also on:    postgresql.org/message-id/92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Improve wording of some pg_upgrade failure reports.
  In-Reply-To: <92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com>
  References: <E1lcCWf-0008S3-RE@gemulon.postgresql.org> <92276bad-c850-4207-4863-96ec60116ee1@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox