From d8a264cd0cc04113d649fa0b2fc5d60a7dbeb7bc Mon Sep 17 00:00:00 2001 From: benedikt-brandtner-bikemap Date: Wed, 14 Jun 2023 11:31:12 +0200 Subject: [PATCH] remove leakproof attribute from functions; (#1535) LEAKPROOF requires the executing user to have superuser privileges when creating the functions which would be the only statement required to be executed as a superuser. --- layers/transportation/update_transportation_merge.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/transportation/update_transportation_merge.sql b/layers/transportation/update_transportation_merge.sql index 7bacd55c..ec91cbc7 100644 --- a/layers/transportation/update_transportation_merge.sql +++ b/layers/transportation/update_transportation_merge.sql @@ -22,7 +22,7 @@ SELECT ST_Length(g) * COS(RADIANS(ST_Y(ST_Centroid(ST_Transform(g, 4326))))) * POW(2, zoom_level) / 20131560 > 0.02 -$$ LANGUAGE SQL IMMUTABLE LEAKPROOF +$$ LANGUAGE SQL IMMUTABLE PARALLEL SAFE; -- Determine whether a segment is long enough to have layer attributes @@ -39,7 +39,7 @@ SELECT COS(RADIANS(ST_Y(ST_Centroid(ST_Transform(g, 4326))))) * POW(2, zoom_level) / 20131560 > 0.02 THEN layer END -$$ LANGUAGE SQL IMMUTABLE LEAKPROOF +$$ LANGUAGE SQL IMMUTABLE PARALLEL SAFE; -- Instead of using relations to find out the road names we