1
|
SELECT util.search_path_append('util');
|
2
|
|
3
|
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'__parent'||$$ ON $$||:table_str||$$ ("eventID")$$); -- runtime: 2 s ("2416.676 ms") @starscream
|
4
|
|
5
|
|
6
|
SELECT mk_derived_col((:table_str, 'scientificName'),
|
7
|
$$_alt("scientificName_verbatim", "scientificName__for_nearest_taxon_concept")$$)
|
8
|
; -- runtime: 15 s ("Time: 12334.893 ms") @starscream
|
9
|
|
10
|
|
11
|
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("identificationID")$$); -- runtime: 1 s ("Time: 1342.115 ms") @starscream
|