forked from babelfish-for-postgresql/babelfish_extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Performance improvement for the views sys.sp_column_privileges_view a…
…nd sys.sp_table_privileges_view (babelfish-for-postgresql#3234) Create internal functions for the views sys.sp_column_privileges_view and sys.sp_table_privileges_view to improve the performance by analysing the query plan. The performance degradation was caused by inaccurate row estimates resulting from an extra JOIN with babelfishpg_authid_user_ext table, leading to suboptimal query plans. Fixed upgrade workflow by using correct source versions. Task: BABEL-5353 Signed-off-by: Shalini Lohia [email protected]
- Loading branch information
1 parent
0edbfa2
commit 72156f8
Showing
6 changed files
with
150 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
-- sla 160000 | ||
-- sla_for_parallel_query_enforced 160000 | ||
-- tsql | ||
CREATE DATABASE db1 | ||
GO | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
-- sla 160000 | ||
use babel_sp_table_priviliges_vu_prepare_db1 | ||
go | ||
|
||
|
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