pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Geoghegan <pg@bowt.ie>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Teach datum_image_eq() about cstring datums.
Date: Tue, 12 Nov 2019 19:26:35 +0000
Message-ID: <E1iUboB-0005Kv-Nf@gemulon.postgresql.org> (raw)

Teach datum_image_eq() about cstring datums.

Bring datum_image_eq() in line with datumIsEqual() by adding support for
comparing cstring datums.

An upcoming patch that adds deduplication to the nbtree AM will use
datum_image_eq().  datum_image_eq() will need to work with all datatypes
that can be used as the storage type of a B-Tree index column, including
cstring.  (cstring is used as the storage type for columns of type
"name" as a space-saving optimization.)

Discussion: https://postgr.es/m/CAH2-Wzn3Ee49Gmxb7V1VJ3-AC8fWn-Fr8pfWQebHe8rYRxt5OQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8c951687f58ad604be13e6addfd56446afb36e13

Modified Files
--------------
src/backend/utils/adt/datum.c | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)



Message-ID: <E1iUboB-0005Kv-Nf@gemulon.postgresql.org>
Permalink:  ../E1iUboB-0005Kv-Nf@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1iUboB-0005Kv-Nf@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: pg@bowt.ie
  Subject: Re: pgsql: Teach datum_image_eq() about cstring datums.
  In-Reply-To: <E1iUboB-0005Kv-Nf@gemulon.postgresql.org>
  References: <E1iUboB-0005Kv-Nf@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