2015-11-10 22:28:12 +08:00
|
|
|
-- Install dependencies
|
|
|
|
CREATE EXTENSION postgis;
|
|
|
|
CREATE EXTENSION plproxy;
|
|
|
|
|
|
|
|
-- Install the extension
|
|
|
|
CREATE EXTENSION cdb_geocoder_client;
|
2015-11-12 01:52:48 +08:00
|
|
|
|
|
|
|
-- Mock the server connection to point to this very test db
|
|
|
|
SELECT cdb_geocoder_client._config_set('db_server_config', '{"connection_str": "dbname=contrib_regression host=127.0.0.1 user=postgres"}');
|
|
|
|
|
|
|
|
-- Mock the server schema
|
|
|
|
CREATE SCHEMA cdb_geocoder_server;
|
2015-11-12 03:22:59 +08:00
|
|
|
|
|
|
|
-- 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;
|