1 |
10811
|
aaronmk
|
SELECT util.search_path_append('util');
|
2 |
|
|
|
3 |
10943
|
aaronmk
|
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("stemID")$$); -- runtime: 0.1 s ("Time: 74.164 ms") @starscream
|
4 |
10934
|
aaronmk
|
|
5 |
|
|
|
6 |
10943
|
aaronmk
|
SELECT mk_derived_col((:table_str, 'individualID'), $$"stemID"$$) ; -- runtime: ~0 ("Time: 1.562 ms") @starscream
|
7 |
10941
|
aaronmk
|
|
8 |
10934
|
aaronmk
|
SELECT mk_derived_col((:table_str, 'aggregateOrganismObservationID'),
|
9 |
10943
|
aaronmk
|
$$_join("aggregateOrganismObservationID__taxon_presence"::text, "aggregateOrganismObservationID__individual_count"::text)$$)
|
10 |
10934
|
aaronmk
|
; -- runtime: 0.5 s ("Time: 441.059 ms") @starscream
|