2016-01-22 19:55:36 +08:00
|
|
|
-- Make sure by default there are no permissions for publicuser
|
|
|
|
-- NOTE: this happens at extension creation time, as part of an implicit transaction.
|
2016-02-06 00:57:56 +08:00
|
|
|
REVOKE ALL PRIVILEGES ON SCHEMA cdb_dataservices_client FROM PUBLIC, publicuser CASCADE;
|
2016-01-22 19:55:36 +08:00
|
|
|
|
|
|
|
-- Grant permissions on the schema to publicuser (but just the schema)
|
2016-02-06 00:57:56 +08:00
|
|
|
GRANT USAGE ON SCHEMA cdb_dataservices_client TO publicuser;
|
2016-01-22 19:55:36 +08:00
|
|
|
|
|
|
|
-- Revoke execute permissions on all functions in the schema by default
|
2016-02-06 00:57:56 +08:00
|
|
|
REVOKE EXECUTE ON ALL FUNCTIONS IN SCHEMA cdb_dataservices_client FROM PUBLIC, publicuser;
|