Skip to content

Backport to 2.29.x: #10313: Allow ALTER EXTENSION UPDATE inside a transaction block - #10330

Merged
timescale-automation merged 4 commits into
2.29.xfrom
backport/2.29.x/10313
Jul 27, 2026
Merged

Backport to 2.29.x: #10313: Allow ALTER EXTENSION UPDATE inside a transaction block#10330
timescale-automation merged 4 commits into
2.29.xfrom
backport/2.29.x/10313

Conversation

@timescale-automation

Copy link
Copy Markdown
Member

This is an automated backport of #10313: Allow ALTER EXTENSION UPDATE inside a transaction block.
This PR will be merged automatically after all the relevant CI checks pass. If this fix should not be backported, or will be backported manually, just close this PR. You can use the backport branch to add your changes, it won't be modified automatically anymore.

For more details, please see the documentation

Original description

Allow ALTER EXTENSION UPDATE inside a transaction block

Opening a transaction with BEGIN or START TRANSACTION used to load the
extension. That made ALTER EXTENSION timescaledb UPDATE fail inside a
transaction block because the old version was already loaded before the
update ran.

The loader now skips loading on BEGIN and START TRANSACTION, so the
update can run as the first extension command in the transaction.

Disable-check: loader-change
Disable-check: commit-count

Opening a transaction with BEGIN or START TRANSACTION used to load the
extension. That made ALTER EXTENSION timescaledb UPDATE fail inside a
transaction block because the old version was already loaded before the
update ran.

The loader now skips loading on BEGIN and START TRANSACTION, so the
update can run as the first extension command in the transaction.

(cherry picked from commit 44da962)
@codecov

codecov Bot commented Jul 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@timescale-automation
timescale-automation merged commit c42bc40 into 2.29.x Jul 27, 2026
75 of 79 checks passed
@timescale-automation
timescale-automation deleted the backport/2.29.x/10313 branch July 27, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

is-auto-backport PR created by backport automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants