Revision 14859
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/inputs/Cyrille_traits/trait_observation/postprocess.sql | ||
---|---|---|
1 |
SELECT util.search_path_append('util'); |
|
2 |
|
|
3 |
SELECT create_if_not_exists( |
|
4 |
$$CREATE INDEX $$||(:table_str||%'__accessRights')||$$ |
|
5 |
ON $$||:table_str||$$ ("accessRights")$$) |
|
6 |
; -- runtime: 4 s ("3596.509 ms") @frenzy |
|
7 |
|
|
8 |
-- remove private data |
|
9 |
DELETE FROM :table WHERE "accessRights" = 'private' |
|
10 |
; -- 112 rows (174042 - 173930) |
Also available in: Unified diff
fix: inputs/Cyrille_traits/trait_observation/postprocess.sql: need to remove private data, as clarified by Cyrille