Project

General

Profile

Statistics
| Revision:
  • svn:ignore: *.bak *.log *.changes.sql

# Date Author Comment
14157 07/19/2014 08:52 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_enable()

14156 07/19/2014 08:46 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_replace()

14155 07/19/2014 08:43 PM Aaron Marcuse-Kubitza

schemas/util.sql: added CAST (util.table_item AS util.check_constraint_def)

14154 07/19/2014 08:38 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_drop()

14153 07/19/2014 08:02 PM Aaron Marcuse-Kubitza

schemas/util.sql: derived_col_expr_from_check_constraint(): enable initially-disabled exprs

14152 07/19/2014 08:00 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_expr_enable()

14151 07/19/2014 07:42 PM Aaron Marcuse-Kubitza

fix: schemas/util.sql: check_constraint view: def: use pg_get_expr() with pretty-print, to avoid extra () that complicate parsing

14150 07/19/2014 06:54 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: taxon_match__fill_derived(): updated using new util.derived_cols_sync()

14149 07/19/2014 06:50 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_cols_sync()

14148 07/19/2014 06:45 PM Aaron Marcuse-Kubitza

bugfix: CAST (util.check_constraint_def AS util.derived_col_def): need to extract the derived column expr from the CHECK constraint expr

14147 07/19/2014 06:44 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_expr_from_check_constraint()

14146 07/19/2014 06:39 PM Aaron Marcuse-Kubitza

schemas/util.sql: added extract_str()

14145 07/19/2014 06:34 PM Aaron Marcuse-Kubitza

schemas/util.sql: added remove_suffix()

14144 07/19/2014 06:21 PM Aaron Marcuse-Kubitza

schemas/util.sql: added remove_prefix()

14143 07/19/2014 05:47 PM Aaron Marcuse-Kubitza

schemas/util.sql: added CAST (util.table_item AS util.col)

14142 07/19/2014 05:37 PM Aaron Marcuse-Kubitza

schemas/util.sql: derived_col_defs(): return derived_col_def instead of check_constraint_def

14141 07/19/2014 05:36 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_def type with cast from util.check_constraint_def

14140 07/19/2014 04:51 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_defs()

14139 07/19/2014 04:35 PM Aaron Marcuse-Kubitza

schemas/util.sql: check_constraint_defs(): use new util.check_constraint view

14138 07/19/2014 04:30 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint view

14137 07/19/2014 03:53 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_defs()

14136 07/19/2014 03:53 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_def type

14135 07/19/2014 03:51 PM Aaron Marcuse-Kubitza

schemas/util.sql: added table_item type

14134 07/19/2014 01:59 PM Aaron Marcuse-Kubitza

schemas/util.sql: col_ref: renamed to just col

14132 07/19/2014 02:52 AM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: taxon_match: to populate a new column: also need to recluster table so rows are exported in sorted order

14131 07/19/2014 02:47 AM Aaron Marcuse-Kubitza

schemas/util.sql: cluster(): support omitting index to recluster a table

14130 07/19/2014 02:26 AM Aaron Marcuse-Kubitza

schemas/util.sql: cluster_once(): use util.cluster()

14129 07/19/2014 02:24 AM Aaron Marcuse-Kubitza

schemas/util.sql: cluster_once(): documented that this runs cluster only once if called repeatedly

14128 07/19/2014 02:24 AM Aaron Marcuse-Kubitza

schemas/util.sql: added cluster(), which reclusters each time

14127 07/19/2014 02:10 AM Aaron Marcuse-Kubitza

schemas/util.sql: cluster_once(): use simpler `LANGUAGE sql` now that we're using util.eval() instead of EXECUTE

14126 07/19/2014 02:03 AM Aaron Marcuse-Kubitza

schemas/util.sql: cluster_once(): use util.eval() instead of EXECUTE to print the CLUSTER statement (if any) it's using

14125 07/18/2014 11:40 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: taxon_match: cluster the table so the rows are always exported in the same order, even when an UPDATE statement is used to run triggers

14124 07/18/2014 11:28 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: cluster_once(): need to use just the name of the index, without the schema prefix

14123 07/18/2014 05:00 PM Aaron Marcuse-Kubitza

schemas/util.sql: cluster_once(): use simpler IS DISTINCT FROM instead of array !=

14122 07/18/2014 03:18 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: added _accepted{genus,specific_epithet} derived column, using the steps at wiki.vegpath.org/Postgres_queries#maintaining-derived-column-formulas-across-column-renames

14112 07/17/2014 04:14 PM Aaron Marcuse-Kubitza

schemas/vegbien.ERD.mwb: updated

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

14110 07/17/2014 03:34 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: MatchedTaxon: taxon_best_match: don't alias to `s` since this is no longer a nested select

14109 07/17/2014 03:32 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: MatchedTaxon: nested select: use just taxon_best_match since this no longer performs renamings

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

14107 07/17/2014 03:05 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: MatchedTaxon: added all columns from taxon_match (some of them apparently hadn't been included in MatchedTaxon)

14106 07/17/2014 03:01 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: reordered columns to match taxon_match

14105 07/17/2014 02:38 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: MatchedTaxon: added all columns from taxon_match (some of them apparently hadn't been included in MatchedTaxon)

14104 07/17/2014 01:02 PM Aaron Marcuse-Kubitza

fix: inputs/.TNRS/schema.sql: added back Family_matched, which had gotten merged with Name_matched_accepted_family when TNRS temporarily stopped populating Name_matched_accepted_family

14103 07/17/2014 12:32 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: MatchedTaxon: taxonomicStatus: moved outside the inner SELECT so that the inner SELECT would consist solely of renamings

14102 07/17/2014 12:12 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: MatchedTaxon: removed unneeded "Name_matched." prefix on source-specific names (only the * is needed because there is only one table)

14101 07/17/2014 12:10 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: view_is_subset(): auto-updatable views that are not plain subsets: include ones with WHERE clauses

14100 07/17/2014 12:03 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: view_is_subset(): also need to handle auto-updatable views that are not plain subsets (there are some of these)

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

14085 07/16/2014 01:21 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: comment(element oid): need `objsubid = 0` filter so this doesn't use comments for any other objsubids

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

14083 07/16/2014 12:47 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: rematerialize_view(): also need to handle the target table's dependent views

14082 07/16/2014 12:38 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: mk_drop_from_create(): need to use `IF EXISTS` so that the resulting statement also works if the target object does not yet exist

14081 07/16/2014 12:24 PM Aaron Marcuse-Kubitza

schemas/util.sql: mk_drop_from_create(): also support `SELECT util.drop_*()` statements, in addition to DROP

13962 07/10/2014 08:41 AM Aaron Marcuse-Kubitza

schemas/util.sql: replace_words(): use map_words() to enable inlining the concatenated hstore, so that it doesn't need to be concatenated on each function call

13961 07/10/2014 08:39 AM Aaron Marcuse-Kubitza

schemas/util.sql: added map_words()

13960 07/10/2014 08:16 AM Aaron Marcuse-Kubitza

schemas/util.sql: added date_from_spanish()

13959 07/10/2014 08:13 AM Aaron Marcuse-Kubitza

schemas/util.sql: added replace_words()

13958 07/10/2014 08:09 AM Aaron Marcuse-Kubitza

schemas/util.sql: added words(text)

13957 07/10/2014 08:02 AM Aaron Marcuse-Kubitza

schemas/util.sql: spanish_date_words(): switched to using hstore because this is better for the algorithm that will translate these

13956 07/10/2014 07:20 AM Aaron Marcuse-Kubitza

schemas/util.sql: added spanish_date_words()

13955 07/10/2014 07:19 AM Aaron Marcuse-Kubitza

schemas/util.sql: added `replacement` type

13954 07/10/2014 04:09 AM Aaron Marcuse-Kubitza

bugfix: mk_set_relation_metadata(): need to include col comments as well so that these are re-created properly by recreate()

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

schemas/util.sql: added mk_set_comments(regclass)

13952 07/10/2014 04:06 AM Aaron Marcuse-Kubitza

schemas/util.sql: show_set_comment(regclass): renamed to mk_set_comment() to match other mk_set_comment() functions

13951 07/10/2014 04:01 AM Aaron Marcuse-Kubitza

schemas/util.sql: added mk_set_col_comments(regclass)

13950 07/10/2014 03:58 AM Aaron Marcuse-Kubitza

schemas/util.sql: added cols(regclass)

13949 07/10/2014 03:56 AM Aaron Marcuse-Kubitza

schemas/util.sql: added mk_set_comment(col_ref)

13938 07/09/2014 09:40 AM Aaron Marcuse-Kubitza

schemas/util.sql: mk_set_comment(table_ regclass, comment text): use new util.mk_set_comment(text, text)

13937 07/09/2014 09:38 AM Aaron Marcuse-Kubitza

schemas/util.sql: added mk_set_comment(col col_ref, comment text)

13936 07/09/2014 09:37 AM Aaron Marcuse-Kubitza

schemas/util.sql: added sql(col_ref)

13935 07/09/2014 09:35 AM Aaron Marcuse-Kubitza

schemas/util.sql: added mk_set_comment(on_ text, comment text)

13934 07/09/2014 07:53 AM Aaron Marcuse-Kubitza

schemas/util.sql: added comment(col_ref)

13933 07/09/2014 07:50 AM Aaron Marcuse-Kubitza

schemas/util.sql: added col_num(col_ref)

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

13927 07/07/2014 07:33 AM Aaron Marcuse-Kubitza

schemas/util.sql: in_south_america(): optimized by using BETWEEN instead of util.contained_within__no_dateline(). this reduces the filter time for 2014-6-4.Iara_Lacher.reserve_prioritization by about 10%.

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

13924 07/07/2014 06:55 AM Aaron Marcuse-Kubitza

bugfix: in_south_america(): must use util.contained_within__no_dateline() instead of util.contained_within_approx() to ensure that the more accurate geometry logic is used

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

13916 07/07/2014 06:14 AM Aaron Marcuse-Kubitza

schemas/util.sql: materialize_view(): use util.copy() instead of util.materialize_query() so that all view metadata is transferred

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

13909 07/07/2014 04:38 AM Aaron Marcuse-Kubitza

schemas/util.sql: added subspecies()

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()

13906 07/07/2014 03:37 AM Aaron Marcuse-Kubitza

fix: schemas/util.sql: OPERATOR ~(geocoord, postgis.geometry): renamed to because this is not an approximate comparison for geometry