1 |
11738
|
aaronmk
|
SELECT util.search_path_append('util');
|
2 |
|
|
|
3 |
11759
|
aaronmk
|
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'__parent'||$$ ON $$||:table_str||$$ ("taxonOccurrenceID__overall_plot")$$); -- runtime: 3 s ("3003.022 ms") @starscream
|
4 |
11738
|
aaronmk
|
|
5 |
|
|
|
6 |
|
|
SELECT mk_derived_col((:table_str, 'aggregateOrganismObservationID'),
|
7 |
11749
|
aaronmk
|
$$_join("aggregateOrganismObservationID__taxon_presence"::text, "aggregateOrganismObservationID__individual_count"::text)$$)
|
8 |
11738
|
aaronmk
|
; -- runtime: 25 s ("26272.523 ms") @starscream
|
9 |
|
|
|
10 |
|
|
|
11 |
|
|
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("aggregateOrganismObservationID")$$); -- runtime: 30 s ("31202.934 ms") @starscream
|