Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG16: Fix JOIN behaviour #6226

Merged
merged 1 commit into from
Oct 24, 2023
Merged

PG16: Fix JOIN behaviour #6226

merged 1 commit into from
Oct 24, 2023

Conversation

svenklemm
Copy link
Member

@svenklemm svenklemm commented Oct 24, 2023

PG16 will remove RelOptInfo entries from root->simple_rel_array when it considers them not needed in analyzejoins.c to prevent reprocessing them. Due to this a relation may be present in root->simple_rte_array but have no corresponding entry in root->simple_rel_array. This patch adds a check for this case.

postgres/postgres@e9a20e45

Disable-check: force-changelog-file

PG16 will remove RelOptInfo entries from root->simple_rel_array
when it considers them not needed in analyzejoins.c to prevent
reprocessing them. Due to this a relation may be present in
root->simple_rte_array but have no corresponding entry in
root->simple_rel_array. This patch adds a check for this case.

postgres/postgres@e9a20e45
@github-actions
Copy link

@jnidzwetzki, @nikkhils: please review this pull request.

Powered by pull-review

@codecov
Copy link

codecov bot commented Oct 24, 2023

Codecov Report

Merging #6226 (f9cd217) into main (7797c41) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #6226      +/-   ##
==========================================
- Coverage   65.11%   65.08%   -0.04%     
==========================================
  Files         246      246              
  Lines       56957    56957              
  Branches    12621    12621              
==========================================
- Hits        37086    37068      -18     
- Misses      18026    18037      +11     
- Partials     1845     1852       +7     
Files Coverage Δ
src/planner/planner.c 86.94% <100.00%> (ø)

... and 6 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@fabriziomello fabriziomello added the pg16 Issue/PR related to support for PG16 label Oct 24, 2023
@svenklemm svenklemm enabled auto-merge (rebase) October 24, 2023 17:16
@svenklemm svenklemm merged commit dc91938 into timescale:main Oct 24, 2023
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pg16 Issue/PR related to support for PG16
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants