Skip to content

Remove wrong assertion in first/last initplan optimization - #9724

Merged
akuzm merged 2 commits into
timescale:mainfrom
akuzm:init-assert
May 6, 2026
Merged

Remove wrong assertion in first/last initplan optimization#9724
akuzm merged 2 commits into
timescale:mainfrom
akuzm:init-assert

Conversation

@akuzm

@akuzm akuzm commented May 5, 2026

Copy link
Copy Markdown
Member

It did not correctly handle the case of SELECT FROM ONLY hypertable.

Besides that, the code that restored RangeTblEntry.inh was targeting the wrong PlannerInfo -- the one from original query instead of the copy used for the optimization. Remove this code as well, since it doesn't do anything useful.

Part of #9714

Disable-check: force-changelog-file

It did not correctly handle the case of SELECT FROM ONLY hypertable.

Besides that, the code that restored RangeTblEntry.inh was targeting the
wrong PlannerInfo -- the one from original query instead of the copy
used for the optimization. Remove this code as well, since it doesn't do
anything useful.
@akuzm
akuzm requested a review from a team May 5, 2026 16:01
@github-actions
github-actions Bot requested review from dbeck and pnthao May 5, 2026 16:01
@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

@pnthao, @dbeck: please review this pull request.

Powered by pull-review

@codecov

codecov Bot commented May 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@akuzm
akuzm enabled auto-merge (squash) May 6, 2026 15:16
@akuzm
akuzm merged commit 2c424c2 into timescale:main May 6, 2026
59 of 60 checks passed
@akuzm
akuzm deleted the init-assert branch May 6, 2026 15:18
@timescale-automation timescale-automation added the released-2.28.0 Released in 2.28.0 label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released-2.28.0 Released in 2.28.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants