Revision 11720
Added by Aaron Marcuse-Kubitza over 11 years ago
inputs/CVS/observation_/postprocess.sql | ||
---|---|---|
1 |
SELECT util.search_path_append('util'); |
|
2 |
|
|
3 |
SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("OBSERVATION_ID")$$); -- runtime: ~0 @starscream |
|
4 |
|
|
5 |
SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'_parent'||$$ ON $$||:table_str||$$ ("PLOT_ID")$$); -- runtime: ~0 @starscream |
Also available in: Unified diff
inputs/CVS/observation_/postprocess.sql: added pkey from the primary joined table. added _parent index to facilitate joins.