Re: Improve examples: Provide the example which extend to the left of the range

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: kes-kes(at)yandex(dot)ru, pgsql-docs(at)lists(dot)postgresql(dot)org
Subject: Re: Improve examples: Provide the example which extend to the left of the range
Date: 2025-02-17 22:48:06
Message-ID: CAKFQuwYch-sZyjNbXY9f=0WFL_E=hHBkJoFY0mV6WoD965Zxfg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs

On Tue, Jan 21, 2025 at 10:09 AM PG Doc comments form <
noreply(at)postgresql(dot)org> wrote:

> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/17/functions-range.html
> Description:
>
> It would be nice to have examples which `extend to the other range`. Eg.
> the
> first example shows how to not extend, the second shows how to extend. Or
> `range` examples shows how to not extend left/right, and the `multirange`
> examples shows how to extend to the left/right.
>
>
The use of the word "how" here might just be a translation thing but to be
sure this isn't about an action, it is strictly about whether the lower
bound of the left argument is greater or less than the lower bound of the
right argument.

I'll agree that all of this takes some thinking to understand but I don't
know that simply adding examples that return false instead of true is a big
gain.

Maybe reword it, removing the "not"?

Thus:

Does the first range not extend to the left of the second?

Becomes:

Is the lower bound of the first range larger than or equal to the lower
bound of the second range?

David J.

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message David G. Johnston 2025-02-17 23:05:59 Re: substring synopsis section, third argument is optional doc didn't show that
Previous Message David G. Johnston 2025-02-17 21:54:24 Re: Text correction