1 |
10532
|
aaronmk
|
SELECT util.search_path_append('util');
|
2 |
|
|
|
3 |
|
|
|
4 |
14490
|
aaronmk
|
-- 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 |
10532
|
aaronmk
|
SELECT mk_derived_col((:table_str, 'occurrenceRemarks'),
|
11 |
10535
|
aaronmk
|
$$_merge("occurrenceRemarks_from_occurrenceRemarks", "occurrenceRemarks_from_dynamicProperties")$$)
|
12 |
10532
|
aaronmk
|
; -- runtime: 1 s ("Time: 590.875 ms") @starscream
|