From 4f779ed3658d7b4d97819b5cca39d6a1d555d67b Mon Sep 17 00:00:00 2001 From: Henson Choi Date: Tue, 7 Apr 2026 09:43:07 +0900 Subject: [PATCH] Add CHECK_FOR_INTERRUPTS to RPR context cleanup and finalize loops --- src/backend/executor/execRPR.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/backend/executor/execRPR.c b/src/backend/executor/execRPR.c index 8f0457e2b3c..97efa9a4924 100644 --- a/src/backend/executor/execRPR.c +++ b/src/backend/executor/execRPR.c @@ -3068,6 +3068,8 @@ ExecRPRCleanupDeadContexts(WindowAggState *winstate, RPRNFAContext *excludeCtx) for (ctx = winstate->nfaContext; ctx != NULL; ctx = next) { + CHECK_FOR_INTERRUPTS(); + next = ctx->next; /* Skip the target context and contexts still processing */ @@ -3108,6 +3110,8 @@ ExecRPRFinalizeAllContexts(WindowAggState *winstate, int64 lastPos) for (ctx = winstate->nfaContext; ctx != NULL; ctx = ctx->next) { + CHECK_FOR_INTERRUPTS(); + if (ctx->states != NULL) { nfa_match(winstate, ctx, NULL); -- 2.50.1 (Apple Git-155)