Mercurial > gemma
view schema/updates/1424/01.add_axis_rls.sql @ 5559:ce9a9a1bf92f
Make invalid output of ISRSrange_area() less likely, next try
Since ST_MakeValid() might return a collection of lower-to-equal dimension
geometries, distill only the polygons from it. This should prevent
respective errors when trying to save the result to a column of type
MultiPolygon.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 02 Dec 2021 12:37:33 +0100 |
parents | 7dff1015283d |
children |
line wrap: on
line source
CREATE POLICY hide_nothing ON waterway.waterway_axis FOR SELECT TO waterway_user USING (true); CREATE POLICY sys_admin ON waterway.waterway_axis FOR ALL TO sys_admin USING (true); CREATE POLICY responsibility_area_insert ON waterway.waterway_axis FOR INSERT TO waterway_admin WITH CHECK (users.utm_covers(wtwaxs)); CREATE POLICY responsibility_area_update ON waterway.waterway_axis FOR UPDATE TO waterway_admin USING (users.utm_covers(wtwaxs)); CREATE POLICY responsibility_area_delete ON waterway.waterway_axis FOR DELETE TO waterway_admin USING (users.utm_covers(wtwaxs)); ALTER TABLE waterway.waterway_axis ENABLE ROW LEVEL SECURITY;