SELECT util.search_path_append('util'); SELECT create_if_not_exists($$ALTER TABLE $$||:table_str||$$ ADD PRIMARY KEY ("OBSERVATION_ID")$$); -- runtime: ~0 @starscream SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'_parent'||$$ ON $$||:table_str||$$ ("PLOT_ID")$$); -- runtime: ~0 @starscream