Skip to content

Fix segfault with CREATE TABLE AS and bulk decompression - #10657

Merged
akuzm merged 7 commits into
timescale:mainfrom
akuzm:as-segfault
Sep 29, 2026
Merged

akuzm merged 7 commits into
timescale:mainfrom
akuzm:as-segfault

Conversation

@akuzm

@akuzm akuzm commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Some callers can actually overwrite the value fields of the compressed batch output tuple, so we can't keep our memory area for materializing the by-reference types there. We have to store it separately and re-set this in the tuple values after each call.

Fixes #10585

Some callers can actually overwrite the value fields of the compressed
batch output tuple, so we can't keep our memory area for materializing
the by-reference types there. We have to store it separately and re-set
this in the tuple values after each call.
@codecov

codecov Bot commented Sep 24, 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 marked this pull request as ready for review September 28, 2026 15:30
@github-actions
github-actions Bot requested review from dbeck and svenklemm September 28, 2026 15:30
@github-actions

Copy link
Copy Markdown

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

Powered by pull-review

@akuzm
akuzm enabled auto-merge (squash) September 29, 2026 09:31
@akuzm
akuzm merged commit fdb9add into timescale:main Sep 29, 2026
62 of 63 checks passed
@akuzm
akuzm deleted the as-segfault branch September 29, 2026 09:46
timescale-automation pushed a commit that referenced this pull request Sep 29, 2026
Some callers can actually overwrite the value fields of the compressed
batch output tuple, so we can't keep our memory area for materializing
the by-reference types there. We have to store it separately and re-set
this in the tuple values after each call.

(cherry picked from commit fdb9add)
@timescale-automation timescale-automation added the released-2.31.0 Released in 2.31.0 label Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported-2.30.x released-2.30.2 Released in 2.30.2 released-2.31.0 Released in 2.31.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Materialization of decompressed tuples using "CREATE TABLE AS" causes memory corruption

4 participants