-
Notifications
You must be signed in to change notification settings - Fork 848
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
[Bug]: Error enabling compression on hypertable with unique expression index #6205
Labels
Comments
konskov
added a commit
to konskov/timescaledb
that referenced
this issue
Oct 18, 2023
konskov
added a commit
to konskov/timescaledb
that referenced
this issue
Oct 18, 2023
When enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as segmentby columns as well. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205
konskov
added a commit
to konskov/timescaledb
that referenced
this issue
Oct 20, 2023
When enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as segmentby columns as well. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205
konskov
added a commit
to konskov/timescaledb
that referenced
this issue
Oct 20, 2023
Since version 2.11.0 we would get a segmentation fault during decompression when there was an expressional or partial index on the uncompressed chunk. This patch fixes this by calling ExecInsertIndexTuples to insert into indexes during chunk decompression, instead of CatalogIndexInsert. In addition, when enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as compression parameters. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205, timescale#6186
konskov
added a commit
to konskov/timescaledb
that referenced
this issue
Oct 23, 2023
Since version 2.11.0 we would get a segmentation fault during decompression when there was an expressional or partial index on the uncompressed chunk. This patch fixes this by calling ExecInsertIndexTuples to insert into indexes during chunk decompression, instead of CatalogIndexInsert. In addition, when enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as compression parameters. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205, timescale#6186
konskov
added a commit
to konskov/timescaledb
that referenced
this issue
Oct 23, 2023
Since version 2.11.0 we would get a segmentation fault during decompression when there was an expressional or partial index on the uncompressed chunk. This patch fixes this by calling ExecInsertIndexTuples to insert into indexes during chunk decompression, instead of CatalogIndexInsert. In addition, when enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as compression parameters. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205, timescale#6186
konskov
added a commit
to konskov/timescaledb
that referenced
this issue
Oct 24, 2023
Since version 2.11.0 we would get a segmentation fault during decompression when there was an expressional or partial index on the uncompressed chunk. This patch fixes this by calling ExecInsertIndexTuples to insert into indexes during chunk decompression, instead of CatalogIndexInsert. In addition, when enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as compression parameters. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205, timescale#6186
konskov
added a commit
that referenced
this issue
Oct 24, 2023
Since version 2.11.0 we would get a segmentation fault during decompression when there was an expressional or partial index on the uncompressed chunk. This patch fixes this by calling ExecInsertIndexTuples to insert into indexes during chunk decompression, instead of CatalogIndexInsert. In addition, when enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as compression parameters. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes #6205, #6186
jnidzwetzki
pushed a commit
to jnidzwetzki/timescaledb
that referenced
this issue
Nov 9, 2023
Since version 2.11.0 we would get a segmentation fault during decompression when there was an expressional or partial index on the uncompressed chunk. This patch fixes this by calling ExecInsertIndexTuples to insert into indexes during chunk decompression, instead of CatalogIndexInsert. In addition, when enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as compression parameters. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205, timescale#6186
jnidzwetzki
pushed a commit
to jnidzwetzki/timescaledb
that referenced
this issue
Nov 19, 2023
Since version 2.11.0 we would get a segmentation fault during decompression when there was an expressional or partial index on the uncompressed chunk. This patch fixes this by calling ExecInsertIndexTuples to insert into indexes during chunk decompression, instead of CatalogIndexInsert. In addition, when enabling compression on a hypertable, we check the unique indexes defined on it to provide performance improvement hints in case the unique index columns are not specified as compression parameters. However this check threw an error when expression columns were present in the index, preventing the user from enabling compression. This patch fixes this by simply ignoring the expression columns in the index, since we cannot currently segment by an expression. Fixes timescale#6205, timescale#6186
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What type of bug is this?
Unexpected error
What subsystems and features are affected?
Compression
What happened?
TimescaleDB version affected
2.12.0 and above
PostgreSQL version used
15.2
What operating system did you use?
MacOS Sonoma 14.0
What installation method did you use?
Source
What platform did you run on?
On prem/Self-hosted
Relevant log output and stack trace
No response
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: