Support using a common redis connection

If sentinel_host or sentinel_cluster_id is not provided it will try to
connect with a redis_host parameter
This commit is contained in:
Luis Bosque
2016-02-17 18:13:24 +01:00
committed by Mario de Frutos
parent 557f67c51f
commit 93463b3032
39 changed files with 2839 additions and 16 deletions

View File

@@ -0,0 +1,15 @@
DO $$
BEGIN
IF NOT EXISTS (
SELECT *
FROM pg_catalog.pg_user
WHERE usename = 'geocoder_api') THEN
CREATE USER geocoder_api;
END IF;
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA cdb_dataservices_server TO geocoder_api;
GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA public TO geocoder_api;
GRANT USAGE ON SCHEMA cdb_dataservices_server TO geocoder_api;
GRANT USAGE ON SCHEMA public TO geocoder_api;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO geocoder_api;
END$$;