Re: Extending range type operators to cope with elements

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>
Cc: Georgios Kokolatos <gkokolatos(at)protonmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org, Esteban Zimanyi <ezimanyi(at)ulb(dot)ac(dot)be>
Subject: Re: Extending range type operators to cope with elements
Date: 2021-02-27 20:35:49
Message-ID: 20210227203549.GA20769@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Oct 30, 2020 at 11:08:19PM +0100, Tomas Vondra wrote:
> Hi,
>
> + <row>
> + <entry role="func_table_entry"><para role="func_signature">
> + <type>anyelement</type> <literal>&gt;&gt;</literal> <type>anyrange</type>
> + <returnvalue>boolean</returnvalue>
> + </para>
> + <para>
> + Is the element strictly right of the element?
> + </para>

should say "of the range" ?

> +++ b/src/backend/utils/adt/rangetypes.c

> + /* An empty range is neither left nor right any other range */
> + /* An empty range is neither left nor right any element */
> + /* An empty range is neither left nor right any other range */
> + /* An empty range is neither left nor right any element */
> + /* An empty range is neither left nor right any element */
> + /* An empty range is neither left nor right any element */

I these comments should all say ".. left nor right OF any ..."

--
Justin

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Álvaro Herrera 2021-02-27 21:14:04 Re: [BUG] segfault during delete
Previous Message Joel Jacobson 2021-02-27 19:51:27 regexp_positions()