fix(postgresql_ext): Reconnect before upgrade#689
Merged
Andersson007 merged 1 commit intoansible-collections:mainfrom May 13, 2024
jouir:timescaledb
Merged
fix(postgresql_ext): Reconnect before upgrade#689Andersson007 merged 1 commit intoansible-collections:mainfrom jouir:timescaledb
Andersson007 merged 1 commit intoansible-collections:mainfrom
jouir:timescaledb
Conversation
Collaborator
|
@jouir hello, thanks for the pull request! Could you please add a changelog fragment (under |
hunleyd
requested changes
Apr 29, 2024
Collaborator
hunleyd
left a comment
There was a problem hiding this comment.
LGTM, will approve w/ a changelog fragment
Collaborator
|
@jouir any updates on ^ ? |
Author
Some extensions like timescaledb need a fresh connection to be upgraded. See https://docs.timescale.com/self-hosted/latest/upgrades/minor-upgrade/. Signed-off-by: Julien Riou <julien@riou.xyz>
Author
|
I've added the changelog fragment as requested. |
hunleyd
approved these changes
May 10, 2024
Andersson007
approved these changes
May 10, 2024
Collaborator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SUMMARY
The TimescaleDB extension needs a fresh connection at upgrade because the extension might be accidentally loaded. The upgrade procedure recommends using the
-Xflag of psql to ignore.psqlrcfile that might execute some queries and load the extension.This commit reconnects before performing the extension upgrade to fix the following error:
ISSUE TYPE
COMPONENT NAME
postgresql_ext