1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-30 11:03:19 +03:00

Hash support for row types

Add hash functions for the record type as well as a hash operator
family and operator class for the record type.  This enables all the
hash functionality for the record type such as hash-based plans for
UNION/INTERSECT/EXCEPT DISTINCT, recursive queries using UNION
DISTINCT, hash joins, and hash partitioning.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/38eccd35-4e2d-6767-1b3c-dada1eac3124%402ndquadrant.com
This commit is contained in:
Peter Eisentraut
2020-11-19 09:24:37 +01:00
parent 7888b09994
commit 01e658fa74
19 changed files with 462 additions and 75 deletions

View File

@ -2182,15 +2182,6 @@ SELECT * FROM search_tree <emphasis>ORDER BY path</emphasis>;
</programlisting>
</para>
<note>
<para>
The queries shown in this and the following section involving
<literal>ROW</literal> constructors in the target list only support
<literal>UNION ALL</literal> (not plain <literal>UNION</literal>) in the
current implementation.
</para>
</note>
<tip>
<para>
Omit the <literal>ROW()</literal> syntax in the common case where only one