Revision 10943
Added by Aaron Marcuse-Kubitza about 11 years ago
postprocess.sql | ||
---|---|---|
1 | 1 |
SELECT util.search_path_append('util'); |
2 | 2 |
|
3 |
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("stemlocation_id")$$); -- runtime: 0.1 s ("Time: 74.164 ms") @starscream
|
|
3 |
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("stemID")$$); -- runtime: 0.1 s ("Time: 74.164 ms") @starscream
|
|
4 | 4 |
|
5 | 5 |
|
6 |
SELECT mk_derived_col((:table_str, 'individualID'), $$stemlocation_id$$) ; -- runtime: ~0 ("Time: 1.562 ms") @starscream
|
|
6 |
SELECT mk_derived_col((:table_str, 'individualID'), $$"stemID"$$) ; -- runtime: ~0 ("Time: 1.562 ms") @starscream
|
|
7 | 7 |
|
8 | 8 |
SELECT mk_derived_col((:table_str, 'aggregateOrganismObservationID'), |
9 |
$$_join("taxonimportance_id"::text, "stemcount_id"::text)$$)
|
|
9 |
$$_join("aggregateOrganismObservationID__taxon_presence"::text, "aggregateOrganismObservationID__individual_count"::text)$$)
|
|
10 | 10 |
; -- runtime: 0.5 s ("Time: 441.059 ms") @starscream |
Also available in: Unified diff
inputs/VegBank/: switched to new-style import, using the steps at http://wiki.vegpath.org/Adding_new-style_import_to_a_datasource