10000 Don't add oid when relid=0 in function get_list_of_relids() · postgrespro/aqo@ab3924e · GitHub
[go: up one dir, main page]

Skip to content

Commit ab3924e

Browse files
xhevxAndrey Lepikhov
authored andcommitted
Don't add oid when relid=0 in function get_list_of_relids()
1 parent 89ada10 commit ab3924e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

path_utils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ get_list_of_relids(PlannerInfo *root, Relids relids)
130130
while ((i = bms_next_member(relids, i)) >= 0)
131131
{
132132
entry = planner_rt_fetch(i, root);
133-
l = lappend_int(l, entry->relid);
133+
if (entry->relid != 0)
134+
l = lappend_int(l, entry->relid);
134135
}
135136
return l;
136137
}

0 commit comments

Comments
 (0)
0