Re: pgsql: Avoid using ambiguous word "positive" in error message.

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Fujii Masao <fujii(at)postgresql(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: pgsql: Avoid using ambiguous word "positive" in error message.
Date: 2021-08-30 14:19:55
Message-ID: CA+TgmoYb=v5A0nK04ZZ4ejDPiphHAbKSqBZf+LUqO+_+qfnZvQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers pgsql-hackers

On Mon, Aug 30, 2021 at 10:16 AM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> > The new style seems good, but I don't really agree that "positive" and
> > "non-negative" are ambiguous. "positive" means >0 and "non-negative"
> > means >= 0, because 0 is neither positive nor negative.
>
> Well, the point is precisely that not everyone makes that distinction.
> I agree that everyone will read "non-negative" as ">= 0"; but there's
> a fair percentage of the population that uses "positive" the same way.

The mathematician in me recoils.

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Responses

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2021-08-30 18:02:11 pgsql: psql: Fix name quoting on extended statistics
Previous Message Tom Lane 2021-08-30 14:16:16 Re: pgsql: Avoid using ambiguous word "positive" in error message.

Browse pgsql-hackers by date

  From Date Subject
Next Message Denis Smirnov 2021-08-30 14:26:09 Re: Async-unsafe functions in signal handlers
Previous Message Aleksander Alekseev 2021-08-30 14:19:54 Patch: shouldn't timezone(text, timestamp[tz]) be STABLE?