SELECT util.search_path_append('util');

SELECT util.rename_cols(:table_str, $$
genus => *genus,
$$::hstore);

SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("PLANTCONCEPT_ID")$$); -- runtime: ~0 @starscream


SELECT mk_derived_col((:table_str, 'division'),
$$_alt(denorm_division, "Division")$$)
; -- runtime: 0.2 s ("212.478 ms") @starscream

SELECT mk_derived_col((:table_str, 'genus'),
$$_alt(denorm_genus, "*genus")$$)
; -- runtime: 0.1 s ("127.546 ms") @starscream
