pgsql: Fix interaction of TOAST compression with expression indexes.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix interaction of TOAST compression with expression indexes.
Date: 2021-03-26 00:06:40
Message-ID: E1lPZzs-0002oY-9f@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix interaction of TOAST compression with expression indexes.

Before, trying to compress a value for insertion into an expression
index would crash.

Dilip Kumar, with some editing by me. Report by Jaime Casanova.

Discussion: http://postgr.es/m/CAJKUy5gcs0zGOp6JXU2mMVdthYhuQpFk=S3V8DOKT=LZC1L36Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5db1fd7823a1a12e2bdad98abc8e102fd71ffbda

Modified Files
--------------
src/backend/access/brin/brin_tuple.c | 8 +++++---
src/backend/access/common/indextuple.c | 15 +++++++++++++--
src/backend/catalog/index.c | 10 ++++++++++
src/test/regress/expected/compression.out | 6 ++++++
src/test/regress/expected/compression_1.out | 13 +++++++++++++
src/test/regress/sql/compression.sql | 7 +++++++
6 files changed, 54 insertions(+), 5 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Amit Kapila 2021-03-26 03:59:44 Re: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode
Previous Message Alvaro Herrera 2021-03-25 21:02:42 pgsql: ALTER TABLE ... DETACH PARTITION ... CONCURRENTLY