From 092f3bfd0c5ece88823820d54bd37e35fafa7174 Mon Sep 17 00:00:00 2001 From: "Chao Li (Evan)" Date: Wed, 21 Jan 2026 14:18:11 +0800 Subject: [PATCH v1] brin: Remove duplicate initialization in initialize_brin_buildstate() Commit dae761a introduced initialization of bs_context, bs_emptyTuple, and bs_emptyTupleLen in initialize_brin_buildstate(). Commit b437571 added the same assignments again. Remove the redundant initialization with no behavioral change. Author: Chao Li --- src/backend/access/brin/brin.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/access/brin/brin.c b/src/backend/access/brin/brin.c index 6887e421442..52466e5bdba 100644 --- a/src/backend/access/brin/brin.c +++ b/src/backend/access/brin/brin.c @@ -1687,9 +1687,6 @@ initialize_brin_buildstate(Relation idxRel, BrinRevmap *revmap, state->bs_leader = NULL; state->bs_worker_id = 0; state->bs_sortstate = NULL; - state->bs_context = CurrentMemoryContext; - state->bs_emptyTuple = NULL; - state->bs_emptyTupleLen = 0; /* Remember the memory context to use for an empty tuple, if needed. */ state->bs_context = CurrentMemoryContext; -- 2.39.5 (Apple Git-154)