Project

General

Profile

# Date Author Comment
14525 08/19/2014 04:39 PM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: native_status_resolver: don't include rows with New World coordinates that don't also have New World country names, since the NSR only uses the country name

14524 08/19/2014 04:26 PM Aaron Marcuse-Kubitza

schemas/public_.sql: native_status_resolver: removed rows with is_geovalid NULL, at Brad's request. note that this removes valid rows with standardized country names.

14522 08/19/2014 03:28 PM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: native_status_resolver: added country IS NOT NULL filter requested by Brad

14521 08/19/2014 02:35 PM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: native_status_resolver: remove the id because this prevents SELECT DISTINCT from having the desired effect. instead, the results will be joined back using the other columns.

14513 08/19/2014 01:23 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added native_status_resolver view, requested by Brad (wiki.vegpath.org/Data_requests)

14488 08/16/2014 05:55 PM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_*: renamed to view_full_occurrence_* at Brian M's and Martha's request (e-mails from Martha on 2014-8-12 at 17:37PT, and from Brian M on 2014-8-13 at 16:21PT). note that this change has already been made on vegbiendev.

14487 08/16/2014 05:51 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added view_full_occurrence_individual_*GBIF, analytical_stem_*GBIF requested by Mark. note that this change has already been made on vegbiendev.

14484 08/16/2014 05:11 PM Aaron Marcuse-Kubitza

schemas/public_.sql: view_full_occurrence_individual, analytical_stem: renamed columns to shortened names at Brian M's request (e-mail from Martha on 2014-8-12 at 17:37PT). note that this change has already been made on vegbiendev.

14483 08/16/2014 02:58 PM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: renamed to analytical_stem since this replaces the materialized analytical_stem table. note that this change has already been made on vegbiendev.

14482 08/16/2014 02:35 PM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_*: renamed to view_full_occurrence_* at Brian M's request (e-mail from Martha on 2014-8-12 at 17:37PT). note that this change has already been made on vegbiendev.

14481 08/16/2014 01:20 PM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_individual: re-ran viewFullOccurrence_individual_view_modify() to udpate this

14478 08/16/2014 12:29 PM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_individual_view: CREATE INDEX runtime: documented 2-column runtime (~2 h)

14473 08/15/2014 04:13 PM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_individual_view: added "after updating this" instructions

14472 08/15/2014 04:01 PM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_individual_view: documented CREATE INDEX runtime (10 min - 1.5 h depending on the datatype and % populated)

14465 08/11/2014 05:28 AM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: *_view_modify(): need to set the search_path so that tables are created in the same schema as the function, rather than whichever schema happens to be at the beginning of the search_path

14464 08/11/2014 05:19 AM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: analytical_stem_view_modify(): updated to support being used directly instead of via a materialized table

14463 08/11/2014 05:13 AM Aaron Marcuse-Kubitza

schemas/public_.sql: removed no longer used analytical_stem. use analytical_stem_view or viewFullOccurrence_individual instead.

14462 08/11/2014 05:08 AM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: viewfulloccurrence_individual_view_modify(): fixed capitalization in function name (needs "" to preserve case)

14461 08/11/2014 05:03 AM Aaron Marcuse-Kubitza

schemas/public_.sql: other derived views: use viewFullOccurrence_individual instead of analytical_stem because analytical_stem is no longer materialized (viewFullOccurrence_individual_view is materialized instead)

14460 08/11/2014 05:01 AM Aaron Marcuse-Kubitza

schemas/public_.sql: validation views: use analytical_stem_view instead of analytical_stem because analytical_stem is no longer materialized (viewFullOccurrence_individual_view is materialized instead)

14459 08/11/2014 04:57 AM Aaron Marcuse-Kubitza

schemas/public_.sql: derived views: use analytical_stem_view instead of analytical_stem because analytical_stem is no longer materialized (viewFullOccurrence_individual_view is materialized instead)

14455 08/11/2014 04:05 AM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: analytical_stem_view: regenerated columns list for viewFullOccurrence_individual (instead of viewFullOccurrence_individual_view)

14450 08/11/2014 01:46 AM Aaron Marcuse-Kubitza

schemas/public_.sql: removed no longer used threatened_taxonlabel_view. use iucn_red_list_view instead.

14449 08/11/2014 01:35 AM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_individual_view: documented materialize time (22 h)

14444 08/10/2014 03:42 AM Aaron Marcuse-Kubitza

schemas/public_.sql: viewFullOccurrence_*: documented materialize time

14442 08/09/2014 10:17 PM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: use new materialized viewFullOccurrence_individual

14441 08/09/2014 10:08 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added viewFullOccurrence_individual by running viewFullOccurrence_individual_view_modify()

14440 08/09/2014 10:05 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added viewFullOccurrence_individual_view_modify(), analogous to analytical_stem_view_modify()

14435 08/09/2014 08:44 PM Aaron Marcuse-Kubitza

schemas/public_.sql: iucn_red_list_view: use taxon_scrub instead of ValidMatchedTaxon since they are equivalent

14433 08/09/2014 08:25 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: taxon_scrub: merged synonymous columns

14429 08/09/2014 07:38 PM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: tnrs_input_name: use taxon_match instead of taxon_best_match because there is no index on taxon_match that includes just the filters used by taxon_best_match

14428 08/09/2014 07:37 PM Aaron Marcuse-Kubitza

schemas/public_.sql: tnrs_input_name: use taxon_best_match now that it's equivalent to MatchedTaxon

14426 08/09/2014 07:19 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: MatchedTaxon: merged synonymous columns

14419 08/08/2014 07:13 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added viewFullOccurrence_{CVS,VegBank,NCU} for Bob

14351 07/26/2014 06:17 PM Aaron Marcuse-Kubitza

schemas/public_.sql: *_view_modify(): added repopulate param, which is passed to rematerialize_view()

14346 07/26/2014 04:32 PM Aaron Marcuse-Kubitza

schemas/public_.sql: *_view_modify(): use util.rematerialize_view(), which now supports table mods

14338 07/25/2014 09:13 PM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: use viewFullOccurrence_individual_view to avoid duplicated code between the views. this moves the stem-related columns to the end of the view.

14337 07/25/2014 06:26 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added viewFullOccurrence_individual_view

14294 07/21/2014 11:59 PM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem: synced to analytical_stem_view

14285 07/21/2014 06:34 PM Aaron Marcuse-Kubitza

schemas/util.sql: added copy_struct(from_ regtype, to_ text) and copy_data(from_ regtype, to_ text), and use these in a general-purpose copy()

14111 07/17/2014 04:13 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: taxon_match: added back * prefixes on TNRS-namespace column names

14108 07/17/2014 03:27 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: MatchedTaxon: renamed output columns to match input columns, so that the nested select would not be performing any renamings

14098 07/16/2014 07:55 PM Aaron Marcuse-Kubitza

schemas/public_.sql: removed no longer used threatened_taxonlabel. use iucn_red_list instead.

14097 07/16/2014 07:39 PM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: analytical_stem_view: don't use threatened_taxonlabel, which was never populated correctly. instead, this can eventually be rewritten to use new iucn_red_list.

14086 07/16/2014 01:24 PM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: analytical_stem_view_modify(): added columns: need to include COMMENT statements

14084 07/16/2014 12:53 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added iucn_red_list_view_modify() and use it in iucn_red_list_view's "after updating this" instructions

13930 07/09/2014 06:22 AM Aaron Marcuse-Kubitza

schemas/public_.sql: iucn_red_list_view: documented how to regenerate iucn_red_list from this

13928 07/08/2014 03:23 PM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: fixed slowdown in materializing the view, which was caused by source__observation_type(), by replacing this with a LEFT JOIN as was done for is_threatened_iucn

13926 07/07/2014 07:26 AM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: is_threatened_iucn: generate this much faster by doing a LEFT JOIN, which can reuse the same in-memory hash index for every row

13925 07/07/2014 07:04 AM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: wrapper functions can't use util-schema types because these will cause the wrapper function to be cascadingly dropped when the util schema is reinstalled

13923 07/07/2014 06:51 AM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: source__observation_type(): don't display NOTICEs about the search_path, because this function will be called millions of times

13922 07/07/2014 06:48 AM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: in_iucn_red_list(): don't display NOTICEs about the search_path, because this function will be called millions of times

13921 07/07/2014 06:43 AM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: added is_threatened_iucn

13920 07/07/2014 06:37 AM Aaron Marcuse-Kubitza

schemas/public_.sql: added in_iucn_red_list()

13919 07/07/2014 06:36 AM Aaron Marcuse-Kubitza

schemas/public_.sql: added iucn_red_list, materialized from iucn_red_list_view

13918 07/07/2014 06:22 AM Aaron Marcuse-Kubitza

bugfix: schemas/vegbien.sql: iucn_red_list_view: need to include only names with an accepted name, and distinctify on the accepted names

13917 07/07/2014 06:17 AM Aaron Marcuse-Kubitza

schemas/public_.sql: added iucn_red_list

13915 07/07/2014 06:02 AM Aaron Marcuse-Kubitza

schemas/public_.sql: iucn_red_list: renamed to iucn_red_list_view since this will be materialized

13914 07/07/2014 06:01 AM Aaron Marcuse-Kubitza

schemas/public_.sql: added iucn_red_list

13913 07/07/2014 05:44 AM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: added collection_type (using source__observation_type())

13912 07/07/2014 05:36 AM Aaron Marcuse-Kubitza

schemas/public_.sql: added source__observation_type()

13911 07/07/2014 05:04 AM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: added accepted_subspecies, and removed accepted_taxon_name_with_author which had been substituting for it

13910 07/07/2014 04:50 AM Aaron Marcuse-Kubitza

schemas/public_.sql: added subspecies() wrapper

13908 07/07/2014 04:10 AM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: include only coordinates in South America

13907 07/07/2014 03:55 AM Aaron Marcuse-Kubitza

schemas/util.sql: added south_america(), in_south_america()

13904 07/07/2014 03:30 AM Aaron Marcuse-Kubitza

schemas/util.sql: lat_long_in_new_world(): renamed to just in_new_world() because the lat/long is implied by the param type

13903 07/07/2014 03:08 AM Aaron Marcuse-Kubitza

schemas/util.sql: lat_long_in_new_world(): take a geocoord param instead of separate lat/long params

13888 07/04/2014 08:29 PM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: include only georeferenced occurrences (lat/long NOT NULL)

13885 07/04/2014 08:14 PM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-4.Iara_Lacher.reserve_prioritization: added functional traits that we have 1st-class columns for (dbh_cm, height_m)

13843 06/25/2014 05:15 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view and related views: updated COMMENTs from data dictionary spreadsheet, using the steps at wiki.vegpath.org/VegBIEN_schema_refactoring#copy-data-dictionary-definitions-to-database

13842 06/25/2014 04:11 AM Aaron Marcuse-Kubitza

schemas/public_.sql: ran analytical_stem_view_modify(), which transfers the column COMMENTs from analytical_stem_view to analytical_stem

13837 06/24/2014 05:03 PM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: analytical_stem_view_modify(): updated to new analytical_stem_view column names

13836 06/24/2014 05:01 PM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: analytical_stem_view derived and related views: applied data dictionary renamings, using the steps at wiki.vegpath.org/VegBIEN_schema_refactoring#apply-data-dictionary-renamings-to-database but with the current columns of analytical_stem as the left-hand column

13835 06/24/2014 04:36 PM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: analytical_stem_view_modify(): updated to new analytical_stem_view column names

13834 06/24/2014 04:34 PM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: applied data dictionary renamings, using the steps at wiki.vegpath.org/VegBIEN_schema_refactoring#apply-data-dictionary-renamings-to-database

13832 06/20/2014 08:01 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added 2014-6-4.Iara_Lacher.reserve_prioritization

13819 06/18/2014 08:56 PM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-12.Jeff_Ott.climatic_range_determinants: also include New World occurrences by coordinates, using new lat_long_in_new_world(). this modification (as requested by Jeff) will help reduce the false negatives filtered out by including only data with placenames.

13818 06/18/2014 08:52 PM Aaron Marcuse-Kubitza

schemas/public_.sql: added lat_long_in_new_world() wrapper around util.lat_long_in_new_world()

13800 06/18/2014 03:53 PM Aaron Marcuse-Kubitza

schemas/public_.sql, inputs/.TNRS/schema.sql: upgraded to Postgres 9.3.4 format, which removes trailing " "

13785 06/16/2014 02:13 PM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-12.Jeff_Ott.climatic_range_determinants: allow geovalid_bien = NULL to enable filtering New World status by coordinates rather than country

13784 06/16/2014 02:03 PM Aaron Marcuse-Kubitza

schemas/public_.sql: 2014-6-12.Jeff_Ott.climatic_range_determinants: added geovalid_bien

13734 06/12/2014 03:53 PM Aaron Marcuse-Kubitza

schemas/vegbien.sql: added 2014-6-12.Jeff_Ott.climatic_range_determinants (wiki.vegpath.org/Data_requests)

13728 06/10/2014 07:35 PM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: applied data dictionary renamings, using the steps at wiki.vegpath.org/VegBIEN_schema_refactoring#apply-data-dictionary-renamings-to-database

13705 06/07/2014 07:04 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: applied data dictionary renamings, using the steps at wiki.vegpath.org/VegBIEN_schema_refactoring#apply-data-dictionary-renamings-to-database

13693 06/06/2014 08:43 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: example terms from each source: added location in the VegBIEN core DB

13692 06/06/2014 08:15 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: terms in normalized schemas: put the source name right next to the term name (instead of after the table name) so it's easy to find

13691 06/06/2014 08:08 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: VegX terms: populated definitions

13690 06/06/2014 07:52 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: VegX terms: referenced to the specific table/subpath that they are in

13689 06/06/2014 07:32 AM Aaron Marcuse-Kubitza

bugfix: schemas/public_.sql: analytical_stem_view: locationName: re-sourced to VegX because this is actually not a DwC term

13688 06/06/2014 07:24 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: populated definitions of linked DwC terms from DwC data dictionary

13687 06/06/2014 07:09 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: renamed terms to link URLs, using the steps at wiki.vegpath.org/VegBIEN_schema_refactoring#data-dictionary-rename-terms-to-link-URLs

13685 06/06/2014 06:44 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: populated links from unrenamed term names, using the steps at wiki.vegpath.org/VegBIEN_schema_refactoring#data-dictionary-populate-links-from-unrenamed-term-names

13684 06/06/2014 06:02 AM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: analytical_stem_view: links: removed = before them because the link is in fact one member in a list of definitions (the = would apply to all definitions, not just the link, and since it apply to all definitions, it's redundant because of course the comment is what the column equals)

13670 06/06/2014 02:44 AM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: analytical_stem_view: vegpath.org links: use ; instead of : between link and definition, because it makes more grammatical sense

13669 06/06/2014 02:42 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: vegpath.org links: removed no longer needed // suffix

13663 06/06/2014 12:08 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: added links and definitions for half a dozen of the terms from various sources

13655 06/05/2014 09:02 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: indicated provenance of the rest of the terms

13654 06/05/2014 08:32 AM Aaron Marcuse-Kubitza

schemas/public_.sql: analytical_stem_view: flagged the DwC terms

13648 06/05/2014 07:30 AM Aaron Marcuse-Kubitza

schemas/public_.sql: added plot.**.modify()

13635 06/05/2014 03:57 AM Aaron Marcuse-Kubitza

fix: schemas/public_.sql: tnrs_input_name: added ORDER BY to ensure a stable sort order. this also creates better query plans by enabling merge joins.