Re: record identical operator - Review

From: Steve Singer <steve(at)ssinger(dot)info>
To: Kevin Grittner <kgrittn(at)ymail(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: record identical operator - Review
Date: 2013-09-29 17:46:44
Message-ID: BLU0-SMTP9033513898F898CF59713BDC2B0@phx.gbl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 09/28/2013 03:03 PM, Kevin Grittner wrote:
> <para>
> + To support matching of rows which include elements without a default
> + B-tree operator class, the following operators are defined for composite
> + type comparison:
> + <literal>*=</>,
> + <literal>*&lt;&gt;</>,
> + <literal>*&lt;</>,
> + <literal>*&lt;=</>,
> + <literal>*&gt;</>, and
> + <literal>*&gt;=</>.
> + These operators are also used internally to maintain materialized views,
> + and may be useful to replication software. To ensure that all user
> + visible changes are detected, even when the equality operator for the
> + type treats old and new values as equal, the byte images of the stored
> + data are compared. While ordering is deterministic, it is not generally
> + useful except to facilitate merge joins. Ordering may differ between
> + system architectures and major releases of
> + <productname>PostgreSQL</productname>.
> + </para>

How about

To support matching of rows which include elements without a default
B-tree operator class, the following operators are defined for composite
type comparison:
<literal>*=</>,
<literal>*&lt;&gt;</>,
<literal>*&lt;</>,
<literal>*&lt;=</>,
<literal>*&gt;</>, and
<literal>*&gt;=</>.

These operators compare the internal binary representation of the two
rows. Two rows might have a different binary representation even
though comparisons of the two rows with the equality operator is true.
The ordering of rows under these comparision operators is deterministic
but not otherwise meaningful. These operators are used internally for
materialized views and might be useful for other specialized purposes
such as replication but are not intended to be generally useful for
writing queries.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2013-09-29 17:53:23 Re: review: psql and pset without any arguments
Previous Message Sameer Thakur 2013-09-29 17:25:16 Re: pg_stat_statements: calls under-estimation propagation