allow upgrading with ALTER EXTENSION pg_jsonschema UPDATE#95
Open
terencehonles wants to merge 1 commit intosupabase:masterfrom
Open
allow upgrading with ALTER EXTENSION pg_jsonschema UPDATE#95terencehonles wants to merge 1 commit intosupabase:masterfrom
ALTER EXTENSION pg_jsonschema UPDATE#95terencehonles wants to merge 1 commit intosupabase:masterfrom
Conversation
Contributor
Author
|
@imor do you mind looking this over? This may not need to force a new release if users are only going between recent releases, but this change unblocks upgrading through all the versions I found on the GitHub releases page (I tested it with a demo server and confirmed that the exposed functions and their definitions were updated properly). You'll probably want to add an upgrade file check to your release scripts, and I downloaded and extracted the debs from the release page, but it probably makes sense to check in the last release's SQL so it's easier to figure out what the difference is between the versions. |
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.
What kind of change does this PR introduce?
allow upgrading with
ALTER EXTENSION pg_jsonschema UPDATEWhat is the current behavior?
PostgreSQL complains that there is no upgrade path for the extension and refuses to update it:
The only way to update is to drop and then re-create the extension. This isn't generally needed because in most cases there isn't any changes that PostgreSQL needs to know about so the updated
.sofile is OK to use even though the extension is not reported to be updated.In a couple of upgrade SQL files I added you'll notice that there is some changes that would not be visible after updating.
What is the new behavior?
The extension is properly updated
Additional context