Repository navigation
Fix add_dimension assertion on NULL hypertable - #10327
Merged
svenklemm merged 2 commits intoAug 1, 2026
Merged
Conversation
|
@kpan2034, @akuzm: please review this pull request.
|
JoongHyuk-Shin
force-pushed
the
fix/adddim-null-arg-guard
branch
from
July 27, 2026 07:10
afe5d90 to
93f256e
Compare
svenklemm
approved these changes
Jul 31, 2026
Codecov Reportβ Patch coverage is
π’ Thoughts on this report? Let us know! |
Poroma-Banerjee
approved these changes
Jul 31, 2026
ts_dimension_add_general read the hypertable argument with a bare PG_GETARG_OID(0), so a NULL argument left table_relid as InvalidOid and tripped an assertion in ts_dimension_add_internal. Guard it with GETARG_NOTNULL_OID to reject NULL with a clear error, matching the dimension argument guard on the line above.
JoongHyuk-Shin
force-pushed
the
fix/adddim-null-arg-guard
branch
from
August 1, 2026 03:10
93f256e to
0564a60
Compare
svenklemm
reviewed
Aug 1, 2026
Signed-off-by: Sven Klemm <31455525+svenklemm@users.noreply.github.com>
Member
|
@JoongHyuk-Shin Thank you for your contribution |
timescale-automation
pushed a commit
that referenced
this pull request
Aug 1, 2026
ts_dimension_add_general read the hypertable argument with a bare PG_GETARG_OID(0), so a NULL argument left table_relid as InvalidOid and tripped an assertion in ts_dimension_add_internal. Guard it with GETARG_NOTNULL_OID to reject NULL with a clear error, matching the dimension argument guard on the line above. --------- Signed-off-by: Sven Klemm <31455525+svenklemm@users.noreply.github.com> Co-authored-by: Sven Klemm <31455525+svenklemm@users.noreply.github.com> (cherry picked from commit f757431)
Merged
surister
pushed a commit
that referenced
this pull request
Aug 4, 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.29.1 (2026-08-04) This release contains performance improvements and bug fixes since the 2.29.0 release and fixes for security vulnerabilities (#10360, #10379, #10386). You can check the [security advisory](GHSA-hcfx-29v5-2rcw) for more information on the vulnerability and the platforms that are affected. We recommend that you upgrade at the next available opportunity. **Bugfixes** * [#10327](#10327) Assertion failure in `add_dimension()` when the hypertable argument is `NULL` * [#10339](#10339) Fix crash when deleting from a compressed continuous aggregate source * [#10340](#10340) Validate `max_batches` in `compact_chunk()` * [#10352](#10352) Reset inherited column and constraint flags on chunks during `attach_chunk()` * [#10360](#10360) Fix decompressor crashes with malformed compressed data * [#10369](#10369) Fix typo in error message about `MERGE` support on compressed hypertables * [#10379](#10379) Read hypertable max time value with an ordered scan * [#10386](#10386) Add missing permission checks to internal chunk functions **Thanks** * @JoongHyuk-Shin for reporting and fixing `NULL` handling in `add_dimension()` * @igor2x for reporting a typo in a `MERGE` support error message * @mdisec for reporting issues with compressed data validation during decompression
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.
ts_dimension_add_general read the hypertable argument with a bare PG_GETARG_OID(0),
so a NULL argument left table_relid as InvalidOid and tripped an assertion in ts_dimension_add_internal.
Guard it with GETARG_NOTNULL_OID to reject NULL with a clear error,
matching the dimension argument guard on the line above.
Disable-check: commit-count