pgsql: Prevent satisfies_hash_partition from crashing with VARIADIC NUL - Mailing list pgsql-committers

From Robert Haas
Subject pgsql: Prevent satisfies_hash_partition from crashing with VARIADIC NUL
Date
Msg-id E1wgmkB-001cL9-1J@gemulon.postgresql.org
Whole thread
List pgsql-committers
Prevent satisfies_hash_partition from crashing with VARIADIC NULL.

Commit f3b0897a1213f46b4d3a99a7f8ef3a4b32e03572 fixed some
related problems, but overlooked this one. That commit first
appeared in PostgreSQL 11, so back-patch to all supported branches.

Backpatch-through: 14
Discussion: http://postgr.es/m/CA+TgmobsvQw3F+KRYT83=N3teh8D2t-oPR=U06QDZJE3viCJRg@mail.gmail.com
Reviewed-by: Tender Wang <tndrwang@gmail.com>
Reviewed-by: Ewan Young <kdbase.hack@gmail.com>

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2ddc4566214d8eff3c4013a9e241b5e9b47abbaf

Modified Files
--------------
src/backend/partitioning/partbounds.c   | 14 +++++++++++++-
src/test/regress/expected/hash_part.out |  7 +++++++
src/test/regress/sql/hash_part.sql      |  3 +++
3 files changed, 23 insertions(+), 1 deletion(-)


pgsql-committers by date:

Previous
From: Nathan Bossart
Date:
Subject: pgsql: Remove switch statements in vector8_shift_{left,right}.
Next
From: Tom Lane
Date:
Subject: pgsql: Fix LIKE/regex optimization for indexscan with exact-match patte