Re: Some leftovers of recent message cleanup? - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject Re: Some leftovers of recent message cleanup?
Date
Msg-id 20210823.152725.929891826512159813.horikyota.ntt@gmail.com
Whole thread Raw
In response to Re: Some leftovers of recent message cleanup?  (Fujii Masao <masao.fujii@oss.nttdata.com>)
Responses Re: Some leftovers of recent message cleanup?  (Fujii Masao <masao.fujii@oss.nttdata.com>)
List pgsql-hackers
At Fri, 20 Aug 2021 19:36:02 +0900, Fujii Masao <masao.fujii@oss.nttdata.com> wrote in 
> 
> 
> On 2021/08/20 11:53, Kyotaro Horiguchi wrote:
> > At Thu, 19 Aug 2021 20:29:42 +0900, Fujii Masao
> > <masao.fujii@oss.nttdata.com> wrote in
> >> On 2021/08/19 17:03, Kyotaro Horiguchi wrote:
> >>> Hello.
> >>> While I was examining message translation for PG14, I found some
> >>> messages that would need to be fixed.
> >>> 0001 is a fix for perhaps-leftovers of the recent message cleanups
> >>> related to "positive integer"(fd90f6ba7a).
> >>
> >> There are still other many messages using "positive" and "negative"
> >> keywords.
> >> We should also fix them at all?
> > I'm not sure, or no if anything. My main point here is not to avoid
> > use of such kind of words, but reducing variations of the effectively
> > the same message from the view of translator burden. The two messages
> > in 0001 are in that category. I noticed those messages accidentally. I
> > don't think they are the only instance of such divergence, but I'm not
> > going to do a comprehensive examination of such divergences.. (Or do I
> > need to check that more comprehensively?)
> 
> 
> Understood.
> 
> -                     errmsg("modulus for hash partition must be a positive
> -                     integer")));
> + errmsg("modulus for hash partition must be an integer greater than
> zero")));
> 
> "an integer greater" should be "an integer value greater" because
> we use that words in other similar log messages like "modulus for
> hash partition must be an integer value greater than zero"
> in src/backend/partitioning/partbounds.c?

Ugh... Of course. I thought I did that way but the actual file is
incorrect...  Fixed that in the attached.

> I'm thinking to back-patch this to v11 where hash partitioning
> was supported. On the other hand, the following change should

If I'm not missing something, back to 13, where the "word change" took
place?  For 11 and 12, we need to change the *both* messages.


v11, 12
./src/backend/parser/parse_utilcmd.c

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Separate out FileSet from SharedFileSet (was Re: pgsql: pgstat: Bring up pgstat in BaseInit() to fix uninitialized use o)
Next
From: Michael Paquier
Date:
Subject: Re: pg_veryfybackup can fail with a valid backup for TLI > 1