From 5c3705703b4d2a1b1d97e297e111be8b4591b32e Mon Sep 17 00:00:00 2001 From: Yugo Nagata Date: Mon, 11 Sep 2023 15:03:02 +0900 Subject: [PATCH] Remov a unnecessary counter variable --- matview.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matview.c b/matview.c index cef4fda..d12041e 100644 --- a/matview.c +++ b/matview.c @@ -1051,9 +1051,9 @@ IVM_immediate_maintenance(PG_FUNCTION_ARGS) char *count_colname = NULL; /* check if the modified table is in EXISTS clause. */ - for (int j = 0; j < list_length(rte_path); j++) + for (i = 0; i < list_length(rte_path); i++) { - int index = lfirst_int(list_nth_cell(rte_path, j)); + int index = lfirst_int(list_nth_cell(rte_path, i)); rte = (RangeTblEntry *) lfirst(list_nth_cell(querytree->rtable, index - 1)); if (rte != NULL && rte->rtekind == RTE_SUBQUERY)