1
|
SELECT util.search_path_append('util');
|
2
|
|
3
|
|
4
|
-- fix indefinite dates, which aren't supported by Postgres
|
5
|
SELECT mk_derived_col((:table_str, 'monthCollected'),
|
6
|
$$util.date_part_fix("monthCollected_verbatim"::integer)$$);
|
7
|
SELECT mk_derived_col((:table_str, 'dayCollected'),
|
8
|
$$util.date_part_fix("dayCollected_verbatim"::integer)$$);
|
9
|
|
10
|
SELECT mk_derived_col((:table_str, 'occurrenceRemarks'),
|
11
|
$$_merge("occurrenceRemarks_from_occurrenceRemarks", "occurrenceRemarks_from_dynamicProperties")$$)
|
12
|
; -- runtime: 1 s ("Time: 590.875 ms") @starscream
|