Re: Inaccurate error message when set fdw batch_size to 0

From: Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com>
To: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
Cc: Kyotaro Horiguchi <horikyota(dot)ntt(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Tsunakawa, Takayuki" <tsunakawa(dot)takay(at)fujitsu(dot)com>, houzj(dot)fnst(at)fujitsu(dot)com, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Inaccurate error message when set fdw batch_size to 0
Date: 2021-07-09 02:41:53
Message-ID: CALj2ACWD77GG3UcCT=YT0TYGwSD6kfNBmetsQqD=T0TxJdtpbg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Jul 9, 2021 at 6:25 AM Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com> wrote:
> The patch could not be applied cleanly because of recent commit d854720df6.
> Could you rebase the patch?

Thanks. Done.

> - /* these must have a non-negative numeric value */
> + /* these must have a positive numeric value */
>
> Isn't it better to replace this with "these must have a floating point value
> greater than or equal to zero"?

Changed.

> - errmsg("%s requires a non-negative numeric value",
> + errmsg("\"%s\" must be a numeric value greater than or equal to zero",
>
> "numeric" should be "floating point"?

Changed.

> + <quote>foo must be a numeric value greater than zero</quote> or
> + <quote>foo must be a numeric value greater than or equal to zero</quote>
> + if option <quote>foo</quote> expects a numeric value
>
> Maybe this description about numeric value is redundant
> because there is already the description about integer value?

Removed.

> - /* Number of workers should be non-negative. */
>
> Isn't it better to replace this with "Number of workers should be greater than zero"
> rather than removing the comment?

Changed.

PSA v6 patch.

Regards,
Bharath Rupireddy.

Attachment Content-Type Size
v6-0001-Disambiguate-error-messages-that-use-non-negative.patch application/octet-stream 8.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2021-07-09 02:49:18 Re: Teach pg_receivewal to use lz4 compression
Previous Message Andres Freund 2021-07-09 02:36:41 Re: Grammar railroad diagram