kaknikhil commented on a change in pull request #399: DL: Enable transfer
learning
URL: https://github.com/apache/madlib/pull/399#discussion_r288689606
##########
File path: src/madpack/madpack.py
##########
@@ -1027,8 +1027,9 @@ def run_install_check(args, testcase, madpack_cmd):
_internal_run_query("DROP OWNED BY %s CASCADE;" % (test_user), True)
_internal_run_query("DROP USER IF EXISTS %s;" % (test_user), True)
- _internal_run_query("CREATE USER %s;" % (test_user), True)
+ _internal_run_query("CREATE USER %s WITH SUPERUSER NOINHERIT;" %
(test_user), True)
_internal_run_query("GRANT USAGE ON SCHEMA %s TO %s;" % (schema,
test_user), True)
+ _internal_run_query("GRANT ALL PRIVILEGES ON DATABASE %s TO %s;" %
(db_name, test_user), True)
Review comment:
These permissions only apply to the dev-check/install-check user who is
created only for running the dev-check/install-check tests. This user is
dropped at the end of each madpack run of dev-check/install-check.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services