From e5d2182da30dbba520af3b26457dcfb2fa9c4866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Ignacio=20S=C3=A1nchez=20Lara?= Date: Wed, 11 Apr 2018 11:50:30 +0200 Subject: [PATCH] Removed geocoder_api user creation from version upgrade script --- .../cdb_dataservices_server--0.30.5--0.31.0.sql | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/server/extension/cdb_dataservices_server--0.30.5--0.31.0.sql b/server/extension/cdb_dataservices_server--0.30.5--0.31.0.sql index e1a25c8..73d095e 100644 --- a/server/extension/cdb_dataservices_server--0.30.5--0.31.0.sql +++ b/server/extension/cdb_dataservices_server--0.30.5--0.31.0.sql @@ -458,18 +458,3 @@ RETURNS SETOF cdb_dataservices_server.isoline AS $$ result = plpy.execute(tomtom_plan, [username, orgname, source, mode, range, options]) return result $$ LANGUAGE plpythonu STABLE PARALLEL RESTRICTED; -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$$; \ No newline at end of file