SELECT util.search_path_append('util');


-- fix indefinite dates, which aren't supported by Postgres
SELECT mk_derived_col((:table_str, 'monthCollected'),
$$util.date_part_fix("monthCollected_verbatim"::integer)$$);
SELECT mk_derived_col((:table_str, 'dayCollected'),
$$util.date_part_fix("dayCollected_verbatim"::integer)$$);

SELECT mk_derived_col((:table_str, 'occurrenceRemarks'),
$$_merge("occurrenceRemarks_from_occurrenceRemarks", "occurrenceRemarks_from_dynamicProperties")$$)
; -- runtime: 1 s ("Time: 590.875 ms") @starscream
