Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Enhancement]: Replica identity full on hypertables with enabled compression #6158

Closed
flexwende opened this issue Oct 5, 2023 · 1 comment
Labels
compression enhancement An enhancement to an existing feature for functionality

Comments

@flexwende
Copy link

What type of enhancement is this?

API improvement

What subsystems and features will be improved?

Compression

What does the enhancement do?

Similar to the latest additions in release 2.12.0 (#6086) and the pull requests #5868 and #5515, make hypertables, that have compression enabled, also support replica identity full.

The current state (2.12.0, postgres 15) is:

ALTER TABLE test_table SET (timescaledb.compress=True);
ALTER TABLE test_table REPLICA IDENTITY FULL;
ERROR: operation not supported on hypertables that have compression enabled

Is that generally possible at all with the compressed data structure?
If so, is implementation planned?

Implementation challenges

No response

@flexwende flexwende added the enhancement An enhancement to an existing feature for functionality label Oct 5, 2023
JamesGuthrie added a commit that referenced this issue May 15, 2024
This unblocks the execution of `ALTER TABLE ... REPLICA IDENTITY ...` on
hypertables with compression enabled. The configured replica identity
only propagates to tables belonging to the uncompressed hypertable.

Fixes: #6158
JamesGuthrie added a commit that referenced this issue May 15, 2024
This unblocks the execution of `ALTER TABLE ... REPLICA IDENTITY ...` on
hypertables with compression enabled. The configured replica identity
only propagates to tables belonging to the uncompressed hypertable.

Fixes: #6158
JamesGuthrie added a commit that referenced this issue May 15, 2024
This unblocks the execution of `ALTER TABLE ... REPLICA IDENTITY ...` on
hypertables with compression enabled. The configured replica identity
only propagates to tables belonging to the uncompressed hypertable.

Fixes: #6158
JamesGuthrie added a commit that referenced this issue May 15, 2024
This unblocks the execution of `ALTER TABLE ... REPLICA IDENTITY ...` on
hypertables with compression enabled. The configured replica identity
only propagates to tables belonging to the uncompressed hypertable.

Fixes: #6158
@JamesGuthrie
Copy link
Member

@flexwende We've unblocked the REPLICA IDENTITY statement on hypertables with compression configured. This means that it should be possible to set the replica identity on a hypertable, which will propagate to the uncompressed chunks, but it will not affect the compressed hypertable and its chunks.

This should be part of the TimescaleDB 2.16 release. I don't know when it will be released, but probably in a few months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compression enhancement An enhancement to an existing feature for functionality
Projects
None yet
Development

No branches or pull requests

3 participants