Project

General

Profile

1 11721 aaronmk
SELECT util.search_path_append('util');
2
3 11723 aaronmk
SELECT util.rename_cols(:table_str, $$
4
genus => *genus,
5
$$::hstore);
6
7 11721 aaronmk
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("PLANTCONCEPT_ID")$$); -- runtime: ~0 @starscream
8 11723 aaronmk
9
10
SELECT mk_derived_col((:table_str, 'division'),
11
$$_alt(denorm_division, "Division")$$)
12
; -- runtime: 0.2 s ("212.478 ms") @starscream
13
14
SELECT mk_derived_col((:table_str, 'genus'),
15
$$_alt(denorm_genus, "*genus")$$)
16
; -- runtime: 0.1 s ("127.546 ms") @starscream