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

[Bug]: Updating extension from 2.11.2 to 2.12.1 fails #6211

Closed
aaronovz1 opened this issue Oct 18, 2023 · 2 comments
Closed

[Bug]: Updating extension from 2.11.2 to 2.12.1 fails #6211

aaronovz1 opened this issue Oct 18, 2023 · 2 comments

Comments

@aaronovz1
Copy link

What type of bug is this?

Other

What subsystems and features are affected?

Other

What happened?

Any suggestions on how to safely upgrade the extension?

tsdb=# ALTER EXTENSION timescaledb UPDATE;
ERROR:  cannot drop view timescaledb_information.hypertables because other objects depend on it
DETAIL:  view public.table_stats depends on view timescaledb_information.hypertables
HINT:  Use DROP ... CASCADE to drop the dependent objects too.

TimescaleDB version affected

2.11.2

PostgreSQL version used

14

What operating system did you use?

Ubuntu

What installation method did you use?

Deb/Apt

What platform did you run on?

Amazon Web Services (AWS)

Relevant log output and stack trace

No response

How can we reproduce the bug?

Run `ALTER EXTENSION timescaledb UPDATE;` on version 2.11.2.
@aaronovz1 aaronovz1 added the bug label Oct 18, 2023
@konskov
Copy link
Contributor

konskov commented Oct 18, 2023

hello @aaronovz1, thanks for reaching out. Could you try dropping the dependent view table_stats before the upgrade and recreating it after it completes? You are getting this error specifically because of the dependency.

@aaronovz1
Copy link
Author

Hey @konskov that looks to have done the trick! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants