From 3b3b01bb9096fedef96a55bbaff4ac1ad20f41c3 Mon Sep 17 00:00:00 2001 From: Paul Trowbridge Date: Mon, 12 Apr 2021 13:13:38 -0400 Subject: [PATCH] create procedure to convert pool to sales matrix columns --- build/convert_pool_all.sql | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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;