-
Notifications
You must be signed in to change notification settings - Fork 907
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: must be owner of table _hyper_4_7401_chunk when using different statistics target #4474
Labels
Comments
Hello @feikesteenbergen, Thank you very much for reporting this issue. I was able to reproduce the behavior with PostgreSQL 14 and TimescaleDB 2.7.0. |
svenklemm
added a commit
to svenklemm/timescaledb
that referenced
this issue
Jul 21, 2022
When triggering chunk creation on a hypertable with non-default statistics targets by a user different from the hypertable owner the chunk creation will fail with a permission error. This patch changes the chunk table creation to run the attribute modification as the table owner. Fixes timescale#4474
svenklemm
added a commit
to svenklemm/timescaledb
that referenced
this issue
Jul 22, 2022
When triggering chunk creation on a hypertable with non-default statistics targets by a user different from the hypertable owner the chunk creation will fail with a permission error. This patch changes the chunk table creation to run the attribute modification as the table owner. Fixes timescale#4474
svenklemm
added a commit
that referenced
this issue
Jul 22, 2022
When triggering chunk creation on a hypertable with non-default statistics targets by a user different from the hypertable owner the chunk creation will fail with a permission error. This patch changes the chunk table creation to run the attribute modification as the table owner. Fixes #4474
svenklemm
added a commit
that referenced
this issue
Jul 22, 2022
When triggering chunk creation on a hypertable with non-default statistics targets by a user different from the hypertable owner the chunk creation will fail with a permission error. This patch changes the chunk table creation to run the attribute modification as the table owner. Fixes #4474
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?
Data ingestion
What happened?
When inserting data into a hypertable, we received the following error:
What is important to trigger this bug, is that the user that is inserting the data into the hypertable is not the owner of the chunk, but merely has
INSERT
privileges for example.What causes this?
Issuing
SET STATISTICS
for a specific column on a tableWhat do we expect?
What actually happened?
Workaround
The workaround is to remove custom settings for
SET STATISTICS
for hypertables. This query can be used to generate such a list of statements:TimescaleDB version affected
2.7.0
PostgreSQL version used
14.4
What operating system did you use?
Ubuntu 22.04
What installation method did you use?
Docker
What platform did you run on?
Timescale Cloud
Relevant log output and stack trace
No response
How can we reproduce the bug?
The text was updated successfully, but these errors were encountered: