Fix error of negative bitmapset member

Started by ywgritalmost 3 years ago1 messagesbugs

Thread notes

1 note#bug
hackorum-bot#bug
hackorum-bot
1 day ago

@global #bug

#bug
Jump to latest
#1ywgrit
yw987194828@gmail.com

After I looked at the logic of SJE, considering that the replace_relid
function chooses whether or not to replace the oldId with a newId from the
relid by determining if the oldId is less than 0, I'm guessing that this
could be caused by a lack of test in replacing the references to the the
self-join from the PlannerInfo->placeholder_list. I think it is
straightforward to modify the judgment logic here, as shown in the
attachment.

Regards.

ywgrit.

Attachments:

t72284_1
0001-Fix-negative-bitmapset-member.patchtext/x-patch; charset=US-ASCII; name=0001-Fix-negative-bitmapset-member.patchDownload+1-0