diff --git a/build/convert_pool_all.sql b/build/convert_pool_all.sql index 914e54c..491ed4e 100644 --- a/build/convert_pool_all.sql +++ b/build/convert_pool_all.sql @@ -1,4 +1,7 @@ -BEGIN; +CREATE OR REPLACE PROCEDURE rlarp.convert_pool_all() +LANGUAGE plpgsql AS +$func$ +BEGIN DELETE FROM rlarp.osmfs_dev; @@ -427,3 +430,7 @@ WHERE --INSERT INTO rlarp.osmf_dev SELECT * FROM rlarp.osmfs_dev; COMMIT; +END +$func$; + +GRANT ALL ON PROCEDURE rlarp.convert_pool_all() TO PUBLIC;