timescale / timescaledb

An open-source time-series SQL database optimized for fast ingest and complex queries. Packaged as a PostgreSQL extension.
https://www.timescale.com/
Other
16.82k stars 852 forks source link

Backport to 2.15.x: #6984: Fix show_chunks on hypertable by hash #7009

Closed timescale-automation closed 4 weeks ago

timescale-automation commented 4 weeks ago

This is an automated backport of #6984: Fix show_chunks on hypertable by hash. 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

Fix show_chunks on hypertable by hash

Using the new hypertable API creating closed dimentions when partitioning by hash was leading to a segfault on show_chunks.

Fixed it by checking for the closed primary dimension and erroring out in case of using parameters older_than and newer_than.

Disable-check: force-changelog-file