From 41dec073855da3bfaa5949f6bec4c95fbd90e297 Mon Sep 17 00:00:00 2001 From: Amit Langote Date: Tue, 1 Dec 2026 11:45:28 +0900 Subject: [PATCH v1] Remove stale comment about locking in ExecInitModifyTable() 28317de723 made ExecDoInitialPruning() lock the first result relation of each ModifyTable node and added a comment pointing to that. 1722d5eb05 removed the locking but left the comment behind. Discussion: https://postgr.es/m/ Backpatch-through: 18 --- src/backend/executor/nodeModifyTable.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/backend/executor/nodeModifyTable.c b/src/backend/executor/nodeModifyTable.c index 98f7385c97d..348e6976cbe 100644 --- a/src/backend/executor/nodeModifyTable.c +++ b/src/backend/executor/nodeModifyTable.c @@ -4967,9 +4967,7 @@ ExecInitModifyTable(ModifyTable *node, EState *estate, int eflags) * partitioned table, ExecInitPartitionInfo() needs a ResultRelInfo struct * as a reference for building the ResultRelInfo of the target partition. * In either case, it doesn't matter which result relation is kept, so we - * just keep the first one, if all others have been pruned. See also, - * ExecDoInitialPruning(), which ensures that this first result relation - * has been locked. + * just keep the first one, if all others have been pruned. */ i = 0; foreach(l, node->resultRelations) -- 2.47.3