Re: A doubt about a newly added errdetail

From: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>
To: amit(dot)kapila16(at)gmail(dot)com
Cc: houzj(dot)fnst(at)fujitsu(dot)com, pgsql-hackers(at)lists(dot)postgresql(dot)org, alvherre(at)alvh(dot)no-ip(dot)org
Subject: Re: A doubt about a newly added errdetail
Date: 2022-09-27 01:40:49
Message-ID: 20220927.104049.1401038490189537071.horikyota.ntt@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

At Mon, 26 Sep 2022 17:33:46 +0530, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote in
> On Mon, Sep 26, 2022 at 4:45 PM houzj(dot)fnst(at)fujitsu(dot)com
> <houzj(dot)fnst(at)fujitsu(dot)com> wrote:
> >
> >
> > Attach the patch. (The patch can apply on both HEAD and PG15)
> >
>
> The patch looks good to me.
>
> *
> - errmsg("cannot add schema to the publication"),
> + errmsg("cannot add schema to publication \"%s\"",
> + stmt->pubname),
>
> I see that you have improved an additional message in the patch which
> appears okay to me.

Overall +1 from me, thanks!

By the way, this is not an issue caused by the proposed patch, I see
the following message in the patch.

- errdetail("Column list cannot be used for a partitioned table when %s is false.",
+ errdetail("Column list cannot be specified for a partitioned table when %s is false.",
"publish_via_partition_root")));

I think that the purpose of such separation of variable names is to
unify multiple messages differing only by the names (to keep
translation labor (relatively:p) low). In that sense, that separation
here is useless since I see no chance of having the same message with
another variable in future.

regards.

--
Kyotaro Horiguchi
NTT Open Source Software Center

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2022-09-27 01:47:33 Re: Add common function ReplicationOriginName.
Previous Message Andrey Chudnovsky 2022-09-27 01:39:28 Re: [PoC] Federated Authn/z with OAUTHBEARER