Re: pgsql: Improve wording of some pg_upgrade failure reports. - Mailing list pgsql-committers

From Tom Lane
Subject Re: pgsql: Improve wording of some pg_upgrade failure reports.
Date
Msg-id 1361791.1620857646@sss.pgh.pa.us
Whole thread Raw
In response to Re: pgsql: Improve wording of some pg_upgrade failure reports.  (Peter Eisentraut <peter.eisentraut@enterprisedb.com>)
List pgsql-committers
Peter Eisentraut <peter.eisentraut@enterprisedb.com> 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



pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: pgsql: Improve wording of some pg_upgrade failure reports.
Next
From: Tom Lane
Date:
Subject: pgsql: Double-space commands in system_constraints.sql/system_functions