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=u06qdzje3vic...@mail.gmail.com
Reviewed-by: Tender Wang <[email protected]>
Reviewed-by: Ewan Young <[email protected]>

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d39b9eed07e3ad72f3106dd76c348c9b3b0cff95

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(-)

Reply via email to