From: | Anastasia Lubennikova <a(dot)lubennikova(at)postgrespro(dot)ru> |
---|---|
To: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
Cc: | Antonin Houska <ah(at)cybertec(dot)at>, Peter Geoghegan <pg(at)bowt(dot)ie>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Building infrastructure for B-Tree deduplication that recognizes when opclass equality is also equivalence |
Date: | 2019-12-26 13:26:34 |
Message-ID: | f1768931-ba49-07a7-7dff-21cf9b7af634@postgrespro.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
24.12.2019 19:08, Alvaro Herrera wrote:
>> @@ -106,6 +106,18 @@ CREATE OPERATOR CLASS <replaceable class="parameter">name</replaceable> [ DEFAUL
>> </listitem>
>> </varlistentry>
>>
>> + <varlistentry>
>> + <term><literal>NOT BITWISE</literal></term>
>> + <listitem>
>> + <para>
>> + If present, the operator class equality is not the same as equivalence.
>> + For example, two numerics can compare equal but have different scales.
>> + Most opclasses implement bitwise equal comparison, alternative behaviour
>> + must be set explicitly.
>> + </para>
>> + </listitem>
>> + </varlistentry>
> Am I the only one bothered by the fact that this patch (and all
> downstream discussion) reduces the term "bitwise equality" to simply
> "bitwise"? It reads really strange to me, both in the resulting SQL
> grammar as well as in struct names, code comments etc. "This operator
> class is bitwise."
>
Thank you for pointing that out.
Do you have any suggestions on how to name it better?
Should it rather be "CREATE OPERATOR CLASS ... BITWISE EQUAL" ?
In the recent version of the patch I also had a question,
if it will be useful to do this option enum instead of boolean:
> We can make this 'opcisbitwise' parameter enum (or char) instead of
> boolean to mark
> "always bitwise", "never bitwise" and "maybe bitwise".
This decision will also affect the syntax. So I'd rather agree on that
before updating syntax.
Do you have an opinion on that?
--
Anastasia Lubennikova
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2019-12-26 13:27:29 | Re: Fix comment typos. |
Previous Message | Maksim Milyutin | 2019-12-26 13:14:40 | Re: Disallow cancellation of waiting for synchronous replication |