From 9ccf758bb8933a03f60175560b8b9cf13012a0bf Mon Sep 17 00:00:00 2001 From: Colm Date: Wed, 23 Jul 2025 10:44:26 +0100 Subject: [PATCH] Fix PG15 compiler error introduced in commit 245a62df3e96f3e (#8069) Commit 245a62df3e96f3e included an assertion on a struct field that is in PG16+, without PG_VERSION_NUM check. This commit removes the offending line of code. The same assertion is present later in the function with the PG_VERSION_NUM check, so the offending line of code is redundant. --- src/backend/distributed/planner/multi_router_planner.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/backend/distributed/planner/multi_router_planner.c b/src/backend/distributed/planner/multi_router_planner.c index 59a1d7bb4..907fe1eaf 100644 --- a/src/backend/distributed/planner/multi_router_planner.c +++ b/src/backend/distributed/planner/multi_router_planner.c @@ -2138,7 +2138,6 @@ ConvertToQueryOnShard(Query *query, Oid citusTableOid, Oid shardId) Assert(list_length(query->rtable) == 1); RangeTblEntry *citusTableRte = (RangeTblEntry *) linitial(query->rtable); Assert(citusTableRte->relid == citusTableOid); - Assert(list_length(query->rteperminfos) == 1); const char *citusTableName = get_rel_name(citusTableOid); Assert(citusTableName != NULL);