From: | Peter Geoghegan <pg(at)bowt(dot)ie> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Teach datum_image_eq() about cstring datums. |
Date: | 2019-11-12 19:26:35 |
Message-ID: | E1iUboB-0005Kv-Nf@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2019-11-12 20:07:30 | pgsql: Have LookupFuncName accept NULL argtypes for 0 args |
Previous Message | Tom Lane | 2019-11-12 18:00:19 | pgsql: Fix ecpglib.h to declare bool consistently with c.h. |