OSDN Git Service

Fix SEGV caused by duplicate memoize hints
authorKyotaro Horiguchi <horikyota.ntt@gmail.com>
Wed, 19 Jan 2022 03:59:59 +0000 (12:59 +0900)
committerKyotaro Horiguchi <horikyota.ntt@gmail.com>
Wed, 19 Jan 2022 03:59:59 +0000 (12:59 +0900)
commitc23bb6af96238bb8b3bca76b84b62978e431f5bb
treeee830fb6a97aa2f1d433e2a04a183d094317c8a2
parente6a90040835ccfb32479f2c42f5baecaa72d9ec0
Fix SEGV caused by duplicate memoize hints

HintTypeName was missing the item for the Memoize hint. This causes
SEGV or "(null)" printing by printf on erroring of duplicate memoize
hints.

Add the missing item and a static assertion to check the same kind of
fault.

Reported by ShangBenX <https://github.com/ShangBenX>
pg_hint_plan.c