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