1
|
SELECT util.search_path_append('util');
|
2
|
|
3
|
|
4
|
SELECT mk_derived_col((:table_str, 'scientificName'),
|
5
|
$$_alt("scientificName_verbatim", "scientificName__for_nearest_taxon_concept")$$)
|
6
|
; -- runtime: 15 s ("Time: 12334.893 ms") @starscream
|
7
|
|
8
|
SELECT mk_derived_col((:table_str, 'identificationID'),
|
9
|
$$_join("taxonOccurrenceID"::text, "identificationID__taxon_determination"::text)$$)
|
10
|
; -- runtime: 20 s ("Time: 21724.277 ms") @starscream
|
11
|
|
12
|
|
13
|
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("identificationID")$$); -- runtime: 20 s ("Time: 19328.716 ms") @starscream
|