Skip to content

Commit

Permalink
Run analyze after creating the extension
Browse files Browse the repository at this point in the history
Signed-off-by: Sumit Jaiswal <[email protected]>
  • Loading branch information
Sumit Jaiswal committed Oct 16, 2023
1 parent e302bca commit af58cf6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contrib/babelfishpg_tsql/sql/ownership.sql
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ BEGIN
CALL sys.babel_initialize_logins('sysadmin');
CALL sys.babel_create_builtin_dbs(sa_name);
CALL sys.initialize_babel_extras();
ANALYZE;
END
$$;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,6 @@ DROP PROCEDURE sys.babelfish_update_user_catalog_for_guest_schema();
-- Please have this be one of the last statements executed in this upgrade script.
DROP PROCEDURE sys.babelfish_drop_deprecated_object(varchar, varchar, varchar);


ANALYZE;
-- Reset search_path to not affect any subsequent scripts
SELECT set_config('search_path', trim(leading 'sys, ' from current_setting('search_path')), false);

0 comments on commit af58cf6

Please sign in to comment.