-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Babelfish support cross database function/procedure execution (#434)
Support cross database function or procedure execution ie, call a function in one database from another database. Here we are talking about Babelfish logical database which is different from a physical Postgres database. To support this, introduced a hook in `ExecFuncProc_AclCheck_hook` to perform permission check to execute specified function/procedure. This hook will decide whether to use current_user (user of current T-SQL database) or session user (login) depending upon if the function is from a different database or not. The reason login can be used for permission check is since login is member of all it’s users, so it inherits all their permissions so it will be able execute any cross database function/procedure owned by its users. Additionally, introduce `SYSNAMESPACENAME` syscache entry for sys.babelfish_namespace_ext catalog so that schema look-ups in this catalog becomes fast. Task: BABEL-5206 Signed-off-by: Rishabh Tanwar <[email protected]> Extension PR: babelfish-for-postgresql/babelfish_extensions#2899
- Loading branch information
1 parent
e57f03a
commit ae1fa4d
Showing
4 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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