Fix error of negative bitmapset member - Mailing list pgsql-bugs

From ywgrit
Subject Fix error of negative bitmapset member
Date
Msg-id CAPt2h2ZNNyvqKctHuPVpqNoFvW+Tf5uxQM2CtAXK+-8y7vdaUg@mail.gmail.com
Whole thread Raw
List pgsql-bugs

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.

Attachment

pgsql-bugs by date:

Previous
From: Richard Guo
Date:
Subject: Re: BUG #18260: Unexpected error: "negative bitmapset member not allowed" triggered by multiple JOIN
Next
From: PG Bug reporting form
Date:
Subject: BUG #18262: Connecting ODI