From 4e53f75e46fcb497028c7c63fb3fb9367d7e5e5d Mon Sep 17 00:00:00 2001 From: Tender Wang Date: Mon, 23 Mar 2026 13:59:59 +0800 Subject: [PATCH] Fix "could not find memoization table entry" --- src/backend/utils/adt/datum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/utils/adt/datum.c b/src/backend/utils/adt/datum.c index 8832785540f..e85fb88220c 100644 --- a/src/backend/utils/adt/datum.c +++ b/src/backend/utils/adt/datum.c @@ -341,7 +341,7 @@ datum_image_hash(Datum value, bool typByVal, int typLen) uint32 result; if (typByVal) - result = hash_bytes((unsigned char *) &value, sizeof(Datum)); + result = hash_bytes((unsigned char *) &value, typLen); else if (typLen > 0) result = hash_bytes((unsigned char *) DatumGetPointer(value), typLen); else if (typLen == -1) -- 2.34.1