Skip to content

Disable direct compress when RETURNING clause references system columns - #10322

Merged
svenklemm merged 1 commit into
mainfrom
sven/returning_systemcolumns
Jul 27, 2026
Merged

Disable direct compress when RETURNING clause references system columns#10322
svenklemm merged 1 commit into
mainfrom
sven/returning_systemcolumns

Conversation

@svenklemm

@svenklemm svenklemm commented Jul 24, 2026

Copy link
Copy Markdown
Member

Direct compress stores the tuple in compressed form instead of a
regular heap tuple, so system columns like ctid or xmin never get a
meaningful value. Fall back to the normal insert path when RETURNING
references them. tableoid is fine because the returning projection
sets it explicitly.

Fixes: #10317

Disable-check: force-changelog-file

@github-actions

Copy link
Copy Markdown

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

Powered by pull-review

@svenklemm svenklemm added this to the v2.29.0 milestone Jul 24, 2026
@codecov

codecov Bot commented Jul 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@svenklemm svenklemm added the force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug" label Jul 27, 2026
Direct compress stores the tuple in compressed form instead of a
regular heap tuple, so system columns like ctid or xmin never get a
meaningful value. Fall back to the normal insert path when RETURNING
references them. tableoid is fine because the returning projection
sets it explicitly.
@svenklemm
svenklemm force-pushed the sven/returning_systemcolumns branch from 3545ecf to 0e5b9c1 Compare July 27, 2026 12:22
@svenklemm
svenklemm merged commit e7aaf4c into main Jul 27, 2026
71 of 73 checks passed
@svenklemm
svenklemm deleted the sven/returning_systemcolumns branch July 27, 2026 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported-2.29.x force-auto-backport Automatically backport this PR or fix of this issue, even if it's not marked as "bug" released-2.29.0 Released in 2.29.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

system columns in RETURNING with direct compress

4 participants