Add code to setup permissions properly

Based on roles and by default closing everything. No need to tweak
things outside of the extension.
This commit is contained in:
Rafa de la Torre
2015-11-11 19:22:59 +00:00
parent 4e7525cc88
commit a7748f71c3
5 changed files with 55 additions and 0 deletions

View File

@@ -10,3 +10,8 @@ SELECT cdb_geocoder_client._config_set('db_server_config', '{"connection_str": "
-- Mock the server schema
CREATE SCHEMA cdb_geocoder_server;
-- Create a test user to check permissions
DROP ROLE IF EXISTS test_regular_user;
CREATE ROLE test_regular_user;
GRANT publicuser TO test_regular_user;