-
Notifications
You must be signed in to change notification settings - Fork 100
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
Run extension SQL script with default search_path = pg_catalog #3486
base: BABEL_5_X_DEV
Are you sure you want to change the base?
Run extension SQL script with default search_path = pg_catalog #3486
Conversation
Pull Request Test Coverage Report for Build 13366766524Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
Some workflows are failing because your fork has stale head commit for BABEL_* branches |
contrib/babelfishpg_tsql/sql/upgrades/babelfishpg_tsql--4.2.0--4.3.0.sql
Outdated
Show resolved
Hide resolved
.github/composite-actions/minor-version-upgrade-util/action.yml
Outdated
Show resolved
Hide resolved
.github/composite-actions/minor-version-upgrade-util/action.yml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please have proper PR title.
# Testing default case without updated search path | ||
# sudo ~/${{env.OLD_INSTALL_DIR}}/bin/psql -v ON_ERROR_STOP=1 -d postgres -U runner -c "ALTER ROLE runner SET search_path TO PG_CATALOG;" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, this will ensure our upgrade script is tested both ways forcing objects to be schema qualified.
@@ -60,9 +60,8 @@ runs: | |||
ulimit -c unlimited | |||
cd ~ | |||
~/${{ inputs.install_dir }}/bin/pg_ctl -c -D ~/${{ inputs.install_dir }}/data/ -l logfile restart | |||
sudo ~/${{ inputs.install_dir }}/bin/psql -v ON_ERROR_STOP=1 -d babelfish_db -U runner -c "\dx" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to remove this as it can be used to debug the extension versions prior to extension update
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please also cherry-pick this to 4_X, 3_X and 2_X branches
Description
There have been a couple of scenarios(BABEL-5362 and BABEL-5595) where we saw upgrade failures which were missed as a part of our github upgrade workflow testing.
When investigated upon we saw a difference in search path in github and gitfarm during upgrade workflows. Also, when tested in OSS with the same search_path as in internal setup, we were able to reproduce the issue.
Key changes:
Task: BABEL-5613
Signed-off-by: Siddharth Sengar sensid@amazon.com
Check List
By submitting this pull request,
I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.