From a957fb82df79d60bcbd577430c584c5cf5454249 Mon Sep 17 00:00:00 2001 From: Konstantina Skovola Date: Fri, 3 Nov 2023 14:38:16 +0200 Subject: [PATCH] Fix wrong use of Const instead of Datum PG16 converted the *GetDatum() and DatumGet*() macros to inline functions. This enabled the compiler to catch a wrong use of Const instead of Datum. postgres/postgres@c8b2ef0 --- tsl/src/nodes/decompress_chunk/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsl/src/nodes/decompress_chunk/exec.c b/tsl/src/nodes/decompress_chunk/exec.c index 89f6bdc31b5..4dcbfc3fe99 100644 --- a/tsl/src/nodes/decompress_chunk/exec.c +++ b/tsl/src/nodes/decompress_chunk/exec.c @@ -499,7 +499,7 @@ decompress_chunk_begin(CustomScanState *node, EState *estate, int eflags) if (IsA(constified, Const)) { Const *c = castNode(Const, constified); - if (c->constisnull || !DatumGetBool(c)) + if (c->constisnull || !DatumGetBool(c->constvalue)) { chunk_state->have_constant_false_vectorized_qual = true; break;