Skip to content

Allow enabling and disabling triggers with columnstore - #10179

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

svenklemm merged 1 commit into
mainfrom
sven/disable_trigger

Conversation

@svenklemm

Copy link
Copy Markdown
Member

Enabling or disabling a trigger on a hypertable with columnstore enabled
was rejected, even when no chunks were compressed. Allow these commands
and apply them to the chunks that have the trigger.

Fixes #10121

@github-actions

Copy link
Copy Markdown

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

Powered by pull-review

@codecov

codecov Bot commented Jun 30, 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 this to the v2.28.3 milestone Jun 30, 2026
@svenklemm
svenklemm force-pushed the sven/disable_trigger branch 2 times, most recently from 451a15a to 25c05bf Compare July 1, 2026 10:41
Enabling or disabling a trigger on a hypertable with columnstore enabled
was rejected, even when no chunks were compressed. Allow these commands
and apply them to the chunks that have the trigger.

Fixes #10121
@svenklemm
svenklemm force-pushed the sven/disable_trigger branch from 25c05bf to 26180a5 Compare July 1, 2026 10:42
@svenklemm
svenklemm merged commit 18b3ecb into main Jul 1, 2026
58 checks passed
@svenklemm
svenklemm deleted the sven/disable_trigger branch July 1, 2026 11:04
@timescale-automation

Copy link
Copy Markdown
Member

Automated backport to 2.28.x not done: cherry-pick failed.

Git status

HEAD detached at origin/2.28.x
You are currently cherry-picking commit 18b3ecb38.
  (fix conflicts and run "git cherry-pick --continue")
  (use "git cherry-pick --skip" to skip this patch)
  (use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
	new file:   .unreleased/enable-disable-trigger-columnstore
	modified:   test/expected/triggers.out
	modified:   test/sql/triggers.sql
	modified:   tsl/test/sql/compression_ddl.sql

Unmerged paths:
  (use "git add <file>..." to mark resolution)
	both modified:   src/process_utility.c
	both modified:   tsl/test/expected/compression_ddl.out


Job log

@timescale-automation timescale-automation added auto-backport-not-done Automated backport of this PR has failed non-retriably (e.g. conflicts) backported-2.28.x labels Jul 1, 2026
@surister surister mentioned this pull request Jul 7, 2026
surister pushed a commit that referenced this pull request Jul 16, 2026
# TimescaleDB Changelog

**Please note: When updating your database, you should connect using
`psql` with the `-X` flag to prevent any `.psqlrc` commands from
accidentally triggering the load of a previous TimescaleDB version.**

## 2.28.3 (2026-07-16)

This release contains performance improvements and bug fixes since the
2.28.2 release. We recommend that you upgrade at the next available
opportunity.

**Bugfixes**
* [#10082](#10082) Wrong
result when evaluating a function returning `NULL` in the columnar query
execution pipeline
* [#10178](#10178) Fix
incorrect usage of sort transformation for sort key expressions with
negative constants
* [#10179](#10179) Allow
enabling and disabling triggers on hypertables with columnstore enabled
* [#10182](#10182) Fix
columnstore sort pushdown to check for different query sort key
collation
* [#10209](#10209) Fix
potentially wrong results for `stddev(float4)` and `stddev(float8)` when
used with `avg()` in the columnar query execution pipeline
* [#10212](#10212) Fix race
condition when enabling compression on a hypertable
* [#10230](#10230) Batch
filtering for compressed `DML` should respect collation
* [#10254](#10254) Direct
delete failed to handle array predicates with `NULL` values and deleted
more rows than intended
([#10129](#10129))
* [#10257](#10257) Reuse
existing `dimension_slice` IDs when possible
* [#10265](#10265) Truncate
constraint name before trying to rename

**Thanks**
* @juantxorena for reporting that triggers could not be enabled or
disabled on hypertables with columnstore enabled
@timescale-automation timescale-automation added the released-2.29.0 Released in 2.29.0 label Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport-not-done Automated backport of this PR has failed non-retriably (e.g. conflicts) backported-2.28.x released-2.29.0 Released in 2.29.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Hypertables with compression do not support enabling or disabling triggers

4 participants