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

Disallow hash partitioning on primary column #6993

Merged
merged 1 commit into from
Jun 5, 2024

Conversation

nikkhils
Copy link
Contributor

@nikkhils nikkhils commented Jun 4, 2024

The new "create_hypertable" API using the dimension info inadvertantly allowed creating hypertables with hash partitioning on the primary column. Since the rest of the machinery (policies, tiering, etc.) does not support hash partitions on primary column properly, we restrict it now in the new API. The older "create_hypertable" API was disallowing it earlier anyways.

@nikkhils nikkhils self-assigned this Jun 4, 2024
nikkhils added a commit to nikkhils/timescaledb that referenced this pull request Jun 4, 2024
The new "create_hypertable" API using the dimension info inadvertantly
allowed creating hypertables with hash partitioning on the primary
column. Since the rest of the machinery (policies, tiering, etc.) does
not support hash partitions on primary column properly, we restrict it
now in the new API. The older "create_hypertable" API was disallowing
it earlier anyways.

Fixes timescale#6993
@nikkhils nikkhils enabled auto-merge (rebase) June 4, 2024 08:15
The new "create_hypertable" API using the dimension info inadvertantly
allowed creating hypertables with hash partitioning on the primary
column. Since the rest of the machinery (policies, tiering, etc.) does
not support hash partitions on primary column properly, we restrict it
now in the new API. The older "create_hypertable" API was disallowing
it earlier anyways.

Fixes timescale#6993
@fabriziomello
Copy link
Contributor

@nikkhils I think this should be part of 2.15.2, right?

@nikkhils
Copy link
Contributor Author

nikkhils commented Jun 5, 2024

@nikkhils I think this should be part of 2.15.2, right?

Yup. Added the label.

@nikkhils nikkhils merged commit 577b923 into timescale:main Jun 5, 2024
36 checks passed
github-actions bot pushed a commit that referenced this pull request Jun 5, 2024
The new "create_hypertable" API using the dimension info inadvertantly
allowed creating hypertables with hash partitioning on the primary
column. Since the rest of the machinery (policies, tiering, etc.) does
not support hash partitions on primary column properly, we restrict it
now in the new API. The older "create_hypertable" API was disallowing
it earlier anyways.

Fixes #6993

(cherry picked from commit 577b923)
timescale-automation pushed a commit that referenced this pull request Jun 5, 2024
The new "create_hypertable" API using the dimension info inadvertantly
allowed creating hypertables with hash partitioning on the primary
column. Since the rest of the machinery (policies, tiering, etc.) does
not support hash partitions on primary column properly, we restrict it
now in the new API. The older "create_hypertable" API was disallowing
it earlier anyways.

Fixes #6993

(cherry picked from commit 577b923)
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jun 6, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [timescale#6797](timescale#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
@fabriziomello fabriziomello mentioned this pull request Jun 6, 2024
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jun 6, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [timescale#6797](timescale#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
pallavisontakke added a commit to pallavisontakke/timescaledb that referenced this pull request Jun 7, 2024
This release contains performance improvements and bug fixes since
the 2.15.1 release. Best practice is to upgrade at the next
available opportunity.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and the update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on the primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting the issue with partially compressed chunks and ordering on joined columns.
@pallavisontakke pallavisontakke mentioned this pull request Jun 7, 2024
pallavisontakke added a commit that referenced this pull request Jun 7, 2024
This release contains bug fixes since the
2.15.1 release. Best practice is to upgrade at the next available
opportunity.

**Bugfixes**
* #6975: Fix sort pushdown for partially compressed chunks.
* #6976: Fix removal of metadata function and the update script.
* #6978: Fix segfault in `compress_chunk` with primary space partition.
* #6993: Disallow hash partitioning on the primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting the issue with partially compressed chunks and
ordering on joined columns.
fabriziomello added a commit to fabriziomello/timescaledb that referenced this pull request Jun 7, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [timescale#6797](timescale#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* timescale#6975: Fix sort pushdown for partially compressed chunks.
* timescale#6976: Fix removal of metadata function and update script.
* timescale#6978: Fix segfault in compress_chunk with primary space partition.
* timescale#6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
fabriziomello added a commit that referenced this pull request Jun 7, 2024
This release contains performance improvements and bug fixes since
the 2.15.0 release. Best practice is to upgrade at the next
available opportunity.

**Migrating from self-hosted TimescaleDB v2.14.x and earlier**

After you run `ALTER EXTENSION`, you must run [this SQL script](https://github.com/timescale/timescaledb-extras/blob/master/utils/2.15.X-fix_hypertable_foreign_keys.sql). For more details, see the following pull request [#6797](#6797).

If you are migrating from TimescaleDB v2.15.0 or v2.15.1, no changes are required.

**Bugfixes**
* #6975: Fix sort pushdown for partially compressed chunks.
* #6976: Fix removal of metadata function and update script.
* #6978: Fix segfault in compress_chunk with primary space partition.
* #6993: Disallow hash partitioning on primary column.

**Thanks**
* @gugu for reporting the issue with catalog corruption due to update.
* @srieding for reporting an issue with partially compressed chunks and ordering on joined columns.
@nikkhils nikkhils deleted the no_hash branch June 21, 2024 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants