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

Fixed an issue whereby the upgrade would fail when the scripts from TimescaleDb-extras are installed. #37

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

expaso
Copy link
Owner

@expaso expaso commented Jul 13, 2023

See: timescale/timescaledb-extras#34

When these scripts are installed, the upgrade of the timescale extension fails with:

cannot drop _timescaledb_catalog.dimension_slice because it depends on function public.get_dimension_details(regclass)
Same error for the views: public.chunks_tstz and public.chunks_ts

This is rather nasty for me, since I don't know if users have timescaledb-extra's installed or not, and I do unsupervised upgrade.

For now, I drop these function if they exist before upgrade, but I found it worth mentioning because there may be more elegant solutions.

@expaso expaso added the enhancement Enhancement of the code, not introducing new features. label Jul 13, 2023
@expaso expaso merged commit 6e86599 into master Jul 13, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Aug 18, 2024
@expaso expaso deleted the FixUpgradeIssueWhentimescaleExtrasInstalled branch August 18, 2024 21:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Enhancement of the code, not introducing new features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant