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

Execute CREATE/GRANT ROLE statements using bbf_role_admin during restore #3082

Open
wants to merge 10 commits into
base: BABEL_4_X_DEV
Choose a base branch
from
Prev Previous commit
Next Next commit
Add IsBinaryUpgrade check
Signed-off-by: Rishabh Tanwar <ritanwar@amazon.com>
  • Loading branch information
ritanwar committed Nov 7, 2024
commit 52592c6d2a6854a98eb1843218907088b3da34fa
4 changes: 2 additions & 2 deletions contrib/babelfishpg_tsql/src/pl_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -3062,7 +3062,7 @@ bbf_ProcessUtility(PlannedStmt *pstmt,

return;
}
else if (babelfish_dump_restore)
else if (!IsBinaryUpgrade && babelfish_dump_restore)
{
Oid save_userid;
int save_sec_context;
Expand Down Expand Up @@ -3860,7 +3860,7 @@ bbf_ProcessUtility(PlannedStmt *pstmt,
return;
}
}
else if (babelfish_dump_restore)
else if (!IsBinaryUpgrade && babelfish_dump_restore)
{
Oid save_userid;
int save_sec_context;
Expand Down
Loading