SELECT util.search_path_append('util'); SELECT create_if_not_exists($$CREATE INDEX $$||:table_str||%'__parent'||$$ ON $$||:table_str||$$ ("eventID")$$); -- runtime: 2 s ("2416.676 ms") @starscream SELECT mk_derived_col((:table_str, 'identifiedBy'), $$_join_words("identifiedBy__first", "identifiedBy__middle", "identifiedBy__last")$$) ; -- runtime: 30 s ("29290.701 ms") @starscream