pgsql: Prevent satisfies_hash_partition from crashing with VARIADIC NUL
pgsql: Prevent satisfies_hash_partition from crashing with VARIADIC NUL
От:
Robert Haas <rhaas@postgresql.org>
Дата:
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 Reviewed-by: Ewan Young Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/0c06ebf126a0d5df39d9c4298193d9887443ce93 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(-)