forked from yugabyte/yugabyte-db
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PG15] Fix assertion failure on lateral_relids in foreign scan
Summary: `get_baserel_parampathinfo` expects `baserel->lateral_relids` to be a subset of `required_outer`. In PG11, `create_foreignscan_path` forcibly adds `lateral_relids` to `required_outer` if that is not the case already. This force addition is removed in upstream PG15 (commit hash is unavailable). Consequently, foreign scan queries with lateral reference fail at assertion `Assert(bms_is_subset(baserel->lateral_relids, required_outer));`. This diff fixes the issue by passing the proper value for argument `required_outer` of function `create_foreignscan_path` from `ybcGetForeignPaths`. Test Plan: Jenkins: rebase: pg15, test regex: org.yb.pgsql.TestPgRegress.* Reviewers: jason Reviewed By: jason Subscribers: yql Tags: #jenkins-ready Differential Revision: https://phorge.dev.yugabyte.com/D29587
Showing
3 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters