Project

General

Profile

1
SELECT util.search_path_append('util');
2

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

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

    
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
(8-8/10)