pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Hash support for row types
Date: Thu, 19 Nov 2020 08:41:37 +0000
Message-ID: <E1kffVZ-000294-FB@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/01e658fa74cb7e3292448f6663b549135958003b

Modified Files
--------------
doc/src/sgml/queries.sgml               |   9 --
src/backend/utils/adt/rowtypes.c        | 249 ++++++++++++++++++++++++++++++++
src/backend/utils/cache/lsyscache.c     |   7 +-
src/backend/utils/cache/typcache.c      |  78 +++++++---
src/include/catalog/catversion.h        |   2 +-
src/include/catalog/pg_amop.dat         |   5 +
src/include/catalog/pg_amproc.dat       |   4 +
src/include/catalog/pg_opclass.dat      |   2 +
src/include/catalog/pg_operator.dat     |   2 +-
src/include/catalog/pg_opfamily.dat     |   2 +
src/include/catalog/pg_proc.dat         |   7 +
src/test/regress/expected/hash_func.out |  21 +++
src/test/regress/expected/join.out      |   1 +
src/test/regress/expected/union.out     |  83 ++++++-----
src/test/regress/expected/with.out      |  33 ++++-
src/test/regress/sql/hash_func.sql      |  17 +++
src/test/regress/sql/join.sql           |   1 +
src/test/regress/sql/union.sql          |  12 +-
src/test/regress/sql/with.sql           |   2 +-
19 files changed, 462 insertions(+), 75 deletions(-)



Message-ID: <E1kffVZ-000294-FB@gemulon.postgresql.org>
Permalink:  ../E1kffVZ-000294-FB@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kffVZ-000294-FB@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org
  Subject: Re: pgsql: Hash support for row types
  In-Reply-To: <E1kffVZ-000294-FB@gemulon.postgresql.org>
  References: <E1kffVZ-000294-FB@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox