Repository navigation
Fix RLS checks after dropping hypertable columns - #10515
Merged
Merged
Conversation
|
@akuzm, @pnthao: please review this pull request.
|
svenklemm
force-pushed
the
sven/rls_attmap
branch
from
August 31, 2026 08:05
65dc4a3 to
b30c987
Compare
Codecov Reportβ All modified and coverable lines are covered by tests. π’ Thoughts on this report? Let us know! |
akuzm
approved these changes
Aug 31, 2026
akuzm
left a comment
Member
There was a problem hiding this comment.
Let's spell "WITH CHECK options" in the commit message, WCO is not a standard abbreviation.
Poroma-Banerjee
approved these changes
Aug 31, 2026
svenklemm
force-pushed
the
sven/rls_attmap
branch
from
August 31, 2026 18:08
b30c987 to
82cec09
Compare
Properly remap WITH CHECK options to chunk-local state when it differs from hypertable layout. Fixes: #10136
svenklemm
force-pushed
the
sven/rls_attmap
branch
from
August 31, 2026 18:55
82cec09 to
3c6769a
Compare
svenklemm
pushed a commit
that referenced
this pull request
Sep 8, 2026
This release contains performance improvements and bug fixes since the 2.29.2 release. We recommend that you upgrade at the next available opportunity. **Highlighted features in TimescaleDB v2.30.0** Blazing fast `LIMIT` queries with the newly introduced `DeferredChunkAppend`. This custom node reduces planning significantly by delaying chunk expansion. During planning the hypertable stays unexpanded and only during execution are chunks enumerated on demand. Combined with the optimizations to `FIRST` and `LAST` sparse indexes, this addition executes last-point queries far more efficiently and quickly. This changes the scaling of the "What is the last reading from this sensor" query from linear with number of chunks to constant if it can be found in the most recent chunk. The true power of the custom node starts to show with increasing amount of chunks, see [more elaborate benchmarks](#10292). **Features** * [#10147](#10147) Support segmentwise batch sorted merge for overlapping batches * [#10292](#10292) Add `DeferredChunkAppend` custom scan * [#10354](#10354) Adds DML support for concurrent compaction * [#10388](#10388) Add custom toaster for compression **Bugfixes** * [#10058](#10058) Apply new sortkeys for in-memory recompression * [#10128](#10128) Include hypertable chunks in publications created with `FOR TABLES IN SCHEMA` * [#10325](#10325) Avoid test errors when building from a source archive without a git repository * [#10408](#10408) Verify columns and their types in `create_compressed_chunk` * [#10515](#10515) Fix row level security checks after dropping hypertable columns * [#9905](#9905) Potentially incorrect result of a join when the join clause contains `time_bucket` * [#9920](#9920) Fix the "XX000: failed to evaluate runtime constant in vectorized filter" error in some queries that use stable functions in `WHERE` clause and the columnar aggregation pipeline * [#10499](#10499) Potentially wrong query result when hypertable chunks are filtered out at query run time, the filter condition uses an uncorrelated subquery, and the query uses a parallel execution plan * [#10513](#10513) Remove `user_catalog_table` option from catalog tables * [#10506](#10506) Correctly match `NULL` tuples to compressed batches with `NULL` boundaries during recompression * [#10524](#10524) Shared memory leak in the chunk stats subsystem when databases are dropped * [#10535](#10535) Fix chunk merging with default sparse indexes * [#10536](#10536) Skip batch size check when direct compress is set as hypertable option * [#10539](#10539) Allow deletes from the policy chunk stats table when the database publishes all tables **GUCs** * `enable_deferred_chunk_append`: Custom scan node for hypertables that iterates chunks at execution instead of expanding every chunk at plan time. Default: true. * `use_custom_toaster`: Use a custom TOAST writer for compressed row inserts. Default: false. **Thanks** * @tureba for reporting the problem with building from a source archive without a git repository [#10325](#10325) * @AlexFavre for reporting a failed extension update when a publication for all tables exists [#10477](#10477) * @peterecofit for reporting potentially wrong query result when hypertable chunks are filtered out at query run time [#10503](#10503) * @esdanieljaegers for reporting the issue and providing steps for reproduction [#10511](#10511)
svenklemm
added a commit
that referenced
this pull request
Sep 8, 2026
This release contains performance improvements and bug fixes since the 2.29.2 release. We recommend that you upgrade at the next available opportunity. **Highlighted features in TimescaleDB v2.30.0** Blazing fast `LIMIT` queries with the newly introduced `DeferredChunkAppend`. This custom node reduces planning significantly by delaying chunk expansion. During planning the hypertable stays unexpanded and only during execution are chunks enumerated on demand. Combined with the optimizations to `FIRST` and `LAST` sparse indexes, this addition executes last-point queries far more efficiently and quickly. This changes the scaling of the "What is the last reading from this sensor" query from linear with number of chunks to constant if it can be found in the most recent chunk. The true power of the custom node starts to show with increasing amount of chunks, see [more elaborate benchmarks](#10292). **Features** * [#10147](#10147) Support segmentwise batch sorted merge for overlapping batches * [#10292](#10292) Add `DeferredChunkAppend` custom scan * [#10354](#10354) Adds DML support for concurrent compaction * [#10388](#10388) Add custom toaster for compression **Bugfixes** * [#10058](#10058) Apply new sortkeys for in-memory recompression * [#10128](#10128) Include hypertable chunks in publications created with `FOR TABLES IN SCHEMA` * [#10325](#10325) Avoid test errors when building from a source archive without a git repository * [#10408](#10408) Verify columns and their types in `create_compressed_chunk` * [#10515](#10515) Fix row level security checks after dropping hypertable columns * [#9905](#9905) Potentially incorrect result of a join when the join clause contains `time_bucket` * [#9920](#9920) Fix the "XX000: failed to evaluate runtime constant in vectorized filter" error in some queries that use stable functions in `WHERE` clause and the columnar aggregation pipeline * [#10499](#10499) Potentially wrong query result when hypertable chunks are filtered out at query run time, the filter condition uses an uncorrelated subquery, and the query uses a parallel execution plan * [#10513](#10513) Remove `user_catalog_table` option from catalog tables * [#10506](#10506) Correctly match `NULL` tuples to compressed batches with `NULL` boundaries during recompression * [#10524](#10524) Shared memory leak in the chunk stats subsystem when databases are dropped * [#10535](#10535) Fix chunk merging with default sparse indexes * [#10536](#10536) Skip batch size check when direct compress is set as hypertable option * [#10539](#10539) Allow deletes from the policy chunk stats table when the database publishes all tables **GUCs** * `enable_deferred_chunk_append`: Custom scan node for hypertables that iterates chunks at execution instead of expanding every chunk at plan time. Default: true. * `use_custom_toaster`: Use a custom TOAST writer for compressed row inserts. Default: false. **Thanks** * @tureba for reporting the problem with building from a source archive without a git repository [#10325](#10325) * @AlexFavre for reporting a failed extension update when a publication for all tables exists [#10477](#10477) * @peterecofit for reporting potentially wrong query result when hypertable chunks are filtered out at query run time [#10503](#10503) * @esdanieljaegers for reporting the issue and providing steps for reproduction [#10511](#10511)
svenklemm
added a commit
that referenced
this pull request
Sep 8, 2026
This release contains performance improvements and bug fixes since the 2.29.2 release. We recommend that you upgrade at the next available opportunity. **Highlighted features in TimescaleDB v2.30.0** Blazing fast `LIMIT` queries with the newly introduced `DeferredChunkAppend`. This custom node reduces planning significantly by delaying chunk expansion. During planning the hypertable stays unexpanded and only during execution are chunks enumerated on demand. Combined with the optimizations to `FIRST` and `LAST` sparse indexes, this addition executes last-point queries far more efficiently and quickly. This changes the scaling of the "What is the last reading from this sensor" query from linear with number of chunks to constant if it can be found in the most recent chunk. The true power of the custom node starts to show with increasing amount of chunks, see [more elaborate benchmarks](#10292). **Features** * [#10147](#10147) Support segmentwise batch sorted merge for overlapping batches * [#10292](#10292) Add `DeferredChunkAppend` custom scan * [#10354](#10354) Adds DML support for concurrent compaction * [#10388](#10388) Add custom toaster for compression **Bugfixes** * [#10058](#10058) Apply new sortkeys for in-memory recompression * [#10128](#10128) Include hypertable chunks in publications created with `FOR TABLES IN SCHEMA` * [#10325](#10325) Avoid test errors when building from a source archive without a git repository * [#10408](#10408) Verify columns and their types in `create_compressed_chunk` * [#10515](#10515) Fix row level security checks after dropping hypertable columns * [#9905](#9905) Potentially incorrect result of a join when the join clause contains `time_bucket` * [#9920](#9920) Fix the "XX000: failed to evaluate runtime constant in vectorized filter" error in some queries that use stable functions in `WHERE` clause and the columnar aggregation pipeline * [#10499](#10499) Potentially wrong query result when hypertable chunks are filtered out at query run time, the filter condition uses an uncorrelated subquery, and the query uses a parallel execution plan * [#10513](#10513) Remove `user_catalog_table` option from catalog tables * [#10506](#10506) Correctly match `NULL` tuples to compressed batches with `NULL` boundaries during recompression * [#10524](#10524) Shared memory leak in the chunk stats subsystem when databases are dropped * [#10535](#10535) Fix chunk merging with default sparse indexes * [#10536](#10536) Skip batch size check when direct compress is set as hypertable option * [#10539](#10539) Allow deletes from the policy chunk stats table when the database publishes all tables **GUCs** * `enable_deferred_chunk_append`: Custom scan node for hypertables that iterates chunks at execution instead of expanding every chunk at plan time. Default: true. * `use_custom_toaster`: Use a custom TOAST writer for compressed row inserts. Default: false. **Thanks** * @tureba for reporting the problem with building from a source archive without a git repository [#10325](#10325) * @AlexFavre for reporting a failed extension update when a publication for all tables exists [#10477](#10477) * @peterecofit for reporting potentially wrong query result when hypertable chunks are filtered out at query run time [#10503](#10503) * @esdanieljaegers for reporting the issue and providing steps for reproduction [#10511](#10511)
Merged
svenklemm
added a commit
that referenced
this pull request
Sep 8, 2026
This release contains performance improvements and bug fixes since the 2.29.2 release. We recommend that you upgrade at the next available opportunity. **Highlighted features in TimescaleDB v2.30.0** Blazing fast `LIMIT` queries with the newly introduced `DeferredChunkAppend`. This custom node reduces planning significantly by delaying chunk expansion. During planning the hypertable stays unexpanded and only during execution are chunks enumerated on demand. Combined with the optimizations to `FIRST` and `LAST` sparse indexes, this addition executes last-point queries far more efficiently and quickly. This changes the scaling of the "What is the last reading from this sensor" query from linear with number of chunks to constant if it can be found in the most recent chunk. The true power of the custom node starts to show with increasing amount of chunks, see [more elaborate benchmarks](#10292). **Features** * [#10147](#10147) Support segmentwise batch sorted merge for overlapping batches * [#10292](#10292) Add `DeferredChunkAppend` custom scan * [#10354](#10354) Adds DML support for concurrent compaction * [#10388](#10388) Add custom toaster for compression **Bugfixes** * [#10058](#10058) Apply new sortkeys for in-memory recompression * [#10128](#10128) Include hypertable chunks in publications created with `FOR TABLES IN SCHEMA` * [#10325](#10325) Avoid test errors when building from a source archive without a git repository * [#10408](#10408) Verify columns and their types in `create_compressed_chunk` * [#10515](#10515) Fix row level security checks after dropping hypertable columns * [#9905](#9905) Potentially incorrect result of a join when the join clause contains `time_bucket` * [#9920](#9920) Fix the "XX000: failed to evaluate runtime constant in vectorized filter" error in some queries that use stable functions in `WHERE` clause and the columnar aggregation pipeline * [#10499](#10499) Potentially wrong query result when hypertable chunks are filtered out at query run time, the filter condition uses an uncorrelated subquery, and the query uses a parallel execution plan * [#10513](#10513) Remove `user_catalog_table` option from catalog tables * [#10506](#10506) Correctly match `NULL` tuples to compressed batches with `NULL` boundaries during recompression * [#10524](#10524) Shared memory leak in the chunk stats subsystem when databases are dropped * [#10535](#10535) Fix chunk merging with default sparse indexes * [#10536](#10536) Skip batch size check when direct compress is set as hypertable option * [#10539](#10539) Allow deletes from the policy chunk stats table when the database publishes all tables **GUCs** * `enable_deferred_chunk_append`: Custom scan node for hypertables that iterates chunks at execution instead of expanding every chunk at plan time. Default: true. * `use_custom_toaster`: Use a custom TOAST writer for compressed row inserts. Default: false. **Thanks** * @tureba for reporting the problem with building from a source archive without a git repository [#10325](#10325) * @AlexFavre for reporting a failed extension update when a publication for all tables exists [#10477](#10477) * @peterecofit for reporting potentially wrong query result when hypertable chunks are filtered out at query run time [#10503](#10503) * @esdanieljaegers for reporting the issue and providing steps for reproduction [#10511](#10511)
svenklemm
added a commit
that referenced
this pull request
Sep 8, 2026
This release contains performance improvements and bug fixes since the 2.29.2 release. We recommend that you upgrade at the next available opportunity. **Highlighted features in TimescaleDB v2.30.0** Blazing fast `LIMIT` queries with the newly introduced `DeferredChunkAppend`. This custom node reduces planning significantly by delaying chunk expansion. During planning the hypertable stays unexpanded and only during execution are chunks enumerated on demand. Combined with the optimizations to `FIRST` and `LAST` sparse indexes, this addition executes last-point queries far more efficiently and quickly. This changes the scaling of the "What is the last reading from this sensor" query from linear with number of chunks to constant if it can be found in the most recent chunk. The true power of the custom node starts to show with increasing amount of chunks, see [more elaborate benchmarks](#10292). **Features** * [#10147](#10147) Support segmentwise batch sorted merge for overlapping batches * [#10292](#10292) Add `DeferredChunkAppend` custom scan * [#10354](#10354) Adds DML support for concurrent compaction * [#10388](#10388) Add custom toaster for compression **Bugfixes** * [#10058](#10058) Apply new sortkeys for in-memory recompression * [#10128](#10128) Include hypertable chunks in publications created with `FOR TABLES IN SCHEMA` * [#10325](#10325) Avoid test errors when building from a source archive without a git repository * [#10408](#10408) Verify columns and their types in `create_compressed_chunk` * [#10515](#10515) Fix row level security checks after dropping hypertable columns * [#9905](#9905) Potentially incorrect result of a join when the join clause contains `time_bucket` * [#9920](#9920) Fix the "XX000: failed to evaluate runtime constant in vectorized filter" error in some queries that use stable functions in `WHERE` clause and the columnar aggregation pipeline * [#10499](#10499) Potentially wrong query result when hypertable chunks are filtered out at query run time, the filter condition uses an uncorrelated subquery, and the query uses a parallel execution plan * [#10513](#10513) Remove `user_catalog_table` option from catalog tables * [#10506](#10506) Correctly match `NULL` tuples to compressed batches with `NULL` boundaries during recompression * [#10524](#10524) Shared memory leak in the chunk stats subsystem when databases are dropped * [#10535](#10535) Fix chunk merging with default sparse indexes * [#10536](#10536) Skip batch size check when direct compress is set as hypertable option * [#10539](#10539) Allow deletes from the policy chunk stats table when the database publishes all tables **GUCs** * `enable_deferred_chunk_append`: Custom scan node for hypertables that iterates chunks at execution instead of expanding every chunk at plan time. Default: true. * `use_custom_toaster`: Use a custom TOAST writer for compressed row inserts. Default: false. **Thanks** * @tureba for reporting the problem with building from a source archive without a git repository [#10325](#10325) * @AlexFavre for reporting a failed extension update when a publication for all tables exists [#10477](#10477) * @peterecofit for reporting potentially wrong query result when hypertable chunks are filtered out at query run time [#10503](#10503) * @esdanieljaegers for reporting the issue and providing steps for reproduction [#10511](#10511)
svenklemm
added a commit
that referenced
this pull request
Sep 8, 2026
This release contains performance improvements and bug fixes since the 2.29.2 release. We recommend that you upgrade at the next available opportunity. **Highlighted features in TimescaleDB v2.30.0** Blazing fast `LIMIT` queries with the newly introduced `DeferredChunkAppend`. This custom node reduces planning significantly by delaying chunk expansion. During planning the hypertable stays unexpanded and only during execution are chunks enumerated on demand. Combined with the optimizations to `FIRST` and `LAST` sparse indexes, this addition executes last-point queries far more efficiently and quickly. This changes the scaling of the "What is the last reading from this sensor" query from linear with number of chunks to constant if it can be found in the most recent chunk. The true power of the custom node starts to show with increasing amount of chunks, see [more elaborate benchmarks](#10292). **Features** * [#10147](#10147) Support segmentwise batch sorted merge for overlapping batches * [#10292](#10292) Add `DeferredChunkAppend` custom scan * [#10354](#10354) Adds DML support for concurrent compaction * [#10388](#10388) Add custom toaster for compression **Bugfixes** * [#10058](#10058) Apply new sortkeys for in-memory recompression * [#10128](#10128) Include hypertable chunks in publications created with `FOR TABLES IN SCHEMA` * [#10325](#10325) Avoid test errors when building from a source archive without a git repository * [#10408](#10408) Verify columns and their types in `create_compressed_chunk` * [#10515](#10515) Fix row level security checks after dropping hypertable columns * [#9905](#9905) Potentially incorrect result of a join when the join clause contains `time_bucket` * [#9920](#9920) Fix the "XX000: failed to evaluate runtime constant in vectorized filter" error in some queries that use stable functions in `WHERE` clause and the columnar aggregation pipeline * [#10499](#10499) Potentially wrong query result when hypertable chunks are filtered out at query run time, the filter condition uses an uncorrelated subquery, and the query uses a parallel execution plan * [#10513](#10513) Remove `user_catalog_table` option from catalog tables * [#10506](#10506) Correctly match `NULL` tuples to compressed batches with `NULL` boundaries during recompression * [#10524](#10524) Shared memory leak in the chunk stats subsystem when databases are dropped * [#10535](#10535) Fix chunk merging with default sparse indexes * [#10536](#10536) Skip batch size check when direct compress is set as hypertable option * [#10539](#10539) Allow deletes from the policy chunk stats table when the database publishes all tables **GUCs** * `enable_deferred_chunk_append`: Custom scan node for hypertables that iterates chunks at execution instead of expanding every chunk at plan time. Default: true. * `use_custom_toaster`: Use a custom TOAST writer for compressed row inserts. Default: false. **Thanks** * @tureba for reporting the problem with building from a source archive without a git repository [#10325](#10325) * @AlexFavre for reporting a failed extension update when a publication for all tables exists [#10477](#10477) * @peterecofit for reporting potentially wrong query result when hypertable chunks are filtered out at query run time [#10503](#10503) * @esdanieljaegers for reporting the issue and providing steps for reproduction [#10511](#10511)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Properly remap WCOs to chunk-local state when it differs from
hypertable layout.
Fixes: #10136