From 823634bfe60242ef483297ee8a7c83733c563291 Mon Sep 17 00:00:00 2001
From: Christopher Lenke <christopher.lenke@uni-bielefeld.de>
Date: Mon, 23 Sep 2024 18:35:15 +0200
Subject: [PATCH] =?UTF-8?q?L=C3=B6sche=20build=5Ftree=5Ffor=5Fsector=5Fpg.?=
 =?UTF-8?q?txt?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 Procedures/build_tree_for_sector_pg.txt | 42 -------------------------
 1 file changed, 42 deletions(-)
 delete mode 100644 Procedures/build_tree_for_sector_pg.txt

diff --git a/Procedures/build_tree_for_sector_pg.txt b/Procedures/build_tree_for_sector_pg.txt
deleted file mode 100644
index fb6c4e4..0000000
--- a/Procedures/build_tree_for_sector_pg.txt
+++ /dev/null
@@ -1,42 +0,0 @@
--- DROP PROCEDURE christines_space.build_tree_for_sector_pg(int8);
-
-CREATE OR REPLACE PROCEDURE christines_space.build_tree_for_sector_pg(my_sector bigint)
- LANGUAGE plpgsql
-AS $procedure$
-	BEGIN
-
-EXECUTE 'drop table if exists processing.zwischen_sector_tree';
-
-EXECUTE 'CREATE TABLE processing.zwischen_sector_tree as (
-select uid_ from (
-(select uid_ from basics.u_sector where domain_id='||my_sector||')) as d1
-union
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-(select uid_ from basics.u_sector where domain_id='||my_sector||'))
-union
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-(select uid_ from basics.u_sector where domain_id='||my_sector||')))
-union
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-(select uid_ from basics.u_sector where domain_id='||my_sector||'))))
-union
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-(select uid_ from basics.u_sector where domain_id='||my_sector||')))))
-union
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_1 from basics.relation where type in (0,1) and uid_0 in (
-select uid_ from basics.u_sector where domain_id='||my_sector||'))))))';
-
-END;
-	
-$procedure$
-;
-- 
GitLab