Removed geocoder_api user creation from version upgrade script
This commit is contained in:
parent
33f23e0902
commit
e5d2182da3
@ -458,18 +458,3 @@ RETURNS SETOF cdb_dataservices_server.isoline AS $$
|
|||||||
result = plpy.execute(tomtom_plan, [username, orgname, source, mode, range, options])
|
result = plpy.execute(tomtom_plan, [username, orgname, source, mode, range, options])
|
||||||
return result
|
return result
|
||||||
$$ LANGUAGE plpythonu STABLE PARALLEL RESTRICTED;
|
$$ 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$$;
|
|
Loading…
Reference in New Issue
Block a user