Fix interaction of TOAST compression with expression indexes.
authorRobert Haas <rhaas@postgresql.org>
Thu, 25 Mar 2021 23:55:32 +0000 (19:55 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 25 Mar 2021 23:55:32 +0000 (19:55 -0400)
commit5db1fd7823a1a12e2bdad98abc8e102fd71ffbda
treeeb2f2a7db5a5351357d04c863c1374c568431415
parent71f4c8c6f74ba021e55d35b1128d22fb8c6e1629
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
src/backend/access/brin/brin_tuple.c
src/backend/access/common/indextuple.c
src/backend/catalog/index.c
src/test/regress/expected/compression.out
src/test/regress/expected/compression_1.out
src/test/regress/sql/compression.sql