Fix PG15 compiler error introduced in commit 245a62df3e (#8069)

Commit 245a62df3e 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.
pull/8060/head^2
Colm 2025-07-23 10:44:26 +01:00 committed by GitHub
parent 0c1b31cdb5
commit 9ccf758bb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 1 deletions

View File

@ -2138,7 +2138,6 @@ ConvertToQueryOnShard(Query *query, Oid citusTableOid, Oid shardId)
Assert(list_length(query->rtable) == 1); Assert(list_length(query->rtable) == 1);
RangeTblEntry *citusTableRte = (RangeTblEntry *) linitial(query->rtable); RangeTblEntry *citusTableRte = (RangeTblEntry *) linitial(query->rtable);
Assert(citusTableRte->relid == citusTableOid); Assert(citusTableRte->relid == citusTableOid);
Assert(list_length(query->rteperminfos) == 1);
const char *citusTableName = get_rel_name(citusTableOid); const char *citusTableName = get_rel_name(citusTableOid);
Assert(citusTableName != NULL); Assert(citusTableName != NULL);