Project

General

Profile

Statistics
| Revision:
  • svn:ignore: extern

# Date Author Comment
14215 07/20/2014 07:14 PM Aaron Marcuse-Kubitza

schemas/util.sql: added is_sqlstate()

14214 07/20/2014 06:44 PM Aaron Marcuse-Kubitza

schemas/util.sql: typeof(expr text, table_ regtype): use simpler util.eval2val() instead of EXECUTE

14213 07/20/2014 06:13 PM Aaron Marcuse-Kubitza

fix: schemas/util.sql: derived_col_constraint_initially_enabled(): also should be initially enabled if expr unchanged, to avoid re-running constraint on all rows

14212 07/20/2014 06:09 PM Aaron Marcuse-Kubitza

schemas/util.sql: derived_col_update(): use new util.derived_col_constraint_initially_enabled()

14211 07/20/2014 06:09 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_constraint_initially_enabled()

14210 07/20/2014 06:05 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_expr(col)

14209 07/20/2014 05:56 PM Aaron Marcuse-Kubitza

derived_col_constraint_enable(): documented that this now avoids re-running constraint on all rows if already enabled

14208 07/20/2014 05:43 PM Aaron Marcuse-Kubitza

fix: check_constraint_replace(): avoid re-running the constraint on all rows if expr hasn't changed

14207 07/20/2014 05:40 PM Aaron Marcuse-Kubitza

schemas/util.sql: check_constraint_replace(): shortened param to `def` for readability

14206 07/20/2014 05:39 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_expr(constraint_ table_item)

14205 07/20/2014 04:34 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_update()

14204 07/20/2014 04:31 PM Aaron Marcuse-Kubitza

schemas/util.sql: check_constraint__disabled(): made disabled configurable (renaming func to check_constraint())

14203 07/20/2014 04:20 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_constraint_expr()

14202 07/20/2014 04:07 PM Aaron Marcuse-Kubitza

schemas/util.sql: derived_col_constraints_enable(): use new derived_col_constraint_enable()

14201 07/20/2014 04:06 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_constraint_enable()

14200 07/20/2014 03:52 PM Aaron Marcuse-Kubitza

schemas/util.sql: added table_has_data()

14199 07/20/2014 03:47 PM Aaron Marcuse-Kubitza

schemas/util.sql: added col_add(derived_col_def)

14198 07/20/2014 03:44 PM Aaron Marcuse-Kubitza

schemas/util.sql: added typeof(text, regclass)

14197 07/20/2014 03:40 PM Aaron Marcuse-Kubitza

bugfix: /README.TXT: Full database import: added warnings that you should not run backups/pg_snapshot while the import is running, nor until the previous import has been replaced

14196 07/20/2014 03:22 PM Aaron Marcuse-Kubitza

schemas/util.sql: added regtype(regclass)

14195 07/20/2014 02:52 PM Aaron Marcuse-Kubitza

schemas/util.sql: added col_add()

14194 07/20/2014 02:32 PM Aaron Marcuse-Kubitza

schemas/util.sql: added col_def type

14193 07/20/2014 07:22 AM Aaron Marcuse-Kubitza

schemas/util.sql: derived_cols_populate(): only run if needed

14192 07/20/2014 07:09 AM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_cols_populated()

14191 07/20/2014 07:09 AM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_cols_populated()

14190 07/20/2014 07:08 AM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_populated()

14189 07/20/2014 07:07 AM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_enabled()

14188 07/20/2014 06:46 AM Aaron Marcuse-Kubitza

schemas/util.sql: remove_prefix(), remove_suffix(): use new starts_with(), ends_with()

14187 07/20/2014 06:45 AM Aaron Marcuse-Kubitza

schemas/util.sql: added starts_with(), ends_with()

14186 07/20/2014 05:57 AM Aaron Marcuse-Kubitza

schemas/util.sql: derived_cols_populate(): also run util.derived_col_constraints_enable() once populated

14185 07/20/2014 05:55 AM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_constraints_enable()

14184 07/20/2014 05:28 AM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint__disabled(), which creates a CHECK constraint which is initially disabled

14183 07/20/2014 05:27 AM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint__disabled(), which creates a CHECK constraint which is initially disabled

14182 07/20/2014 05:07 AM Aaron Marcuse-Kubitza

fix: schemas/util.sql: run_triggers(): need to re-sort rows if table needs this

14181 07/20/2014 05:05 AM Aaron Marcuse-Kubitza

schemas/util.sql: added try_cluster()

14180 07/20/2014 04:05 AM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_cols_populate()

14179 07/20/2014 04:04 AM Aaron Marcuse-Kubitza

schemas/util.sql: added run_triggers(regclass)

14178 07/20/2014 04:00 AM Aaron Marcuse-Kubitza

schemas/util.sql: added first_col(regclass)

14177 07/20/2014 02:42 AM Aaron Marcuse-Kubitza

fix: schemas/util.sql: read-only functions should be STABLE rather than VOLATILE

14176 07/20/2014 02:42 AM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: functions that access the DB must be STABLE rather than IMMUTABLE

14175 07/20/2014 02:23 AM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: derived_col_defs(): derived columns must be returned in table order (which should = dependency order), so that they are populated in dependency order

14174 07/20/2014 02:17 AM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: remove_prefix(), remove_suffix(): must be declared STRICT to handle NULL properly

14173 07/20/2014 02:16 AM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: remove_suffix(): need to use quote_nullable(str) so a NULL str doesn't NULL out the entire message

14172 07/20/2014 02:10 AM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: remove_prefix(): need to use quote_nullable(str) so a NULL str doesn't NULL out the entire message

14171 07/20/2014 02:09 AM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: raise(): use new quote_as_str() to avoid "RAISE statement option cannot be null" errors

14170 07/20/2014 02:08 AM Aaron Marcuse-Kubitza

schemas/util.sql: added quote_as_str()

14169 07/19/2014 11:23 PM Aaron Marcuse-Kubitza

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

14168 07/19/2014 11:05 PM Aaron Marcuse-Kubitza

schemas/util.sql: derived_col_def(col): use existing util.check_constraint_def()

14167 07/19/2014 11:01 PM Aaron Marcuse-Kubitza

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

14166 07/19/2014 10:50 PM Aaron Marcuse-Kubitza

schemas/util.sql: added derived_col_def(col)

14165 07/19/2014 10:30 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_disable()

14164 07/19/2014 10:23 PM Aaron Marcuse-Kubitza

bugfix: schemas/util.sql: check_constraint_drop(): need IF EXISTS

14163 07/19/2014 10:09 PM Aaron Marcuse-Kubitza

schemas/util.sql: added check_constraint_expr_disable()

14162 07/19/2014 09:50 PM Aaron Marcuse-Kubitza

schemas/util.sql: check_constraint_enable(): documented that this is idempotent

14161 07/19/2014 09:21 PM Aaron Marcuse-Kubitza

inputs/.TNRS/schema.sql: taxon_match: documented that whenever columns are renamed, util.derived_cols_sync() should be run

14160 07/19/2014 09:14 PM Aaron Marcuse-Kubitza

schemas/util.sql: derived_cols_sync(): also create trigger, since this is necessary for a complete sync

14159 07/19/2014 09:13 PM Aaron Marcuse-Kubitza

schemas/util.sql: added name(regprocedure)

14158 07/19/2014 09:02 PM Aaron Marcuse-Kubitza

schemas/util.sql: derived_cols_sync(): set the trigger name in a var

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

14133 07/19/2014 01:38 PM Aaron Marcuse-Kubitza

web/username_prefix.php: remove padding used to visually separate elements: documented that this leaves embedded _ (eg. x_y) untouched

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

14121 07/18/2014 02:01 AM Aaron Marcuse-Kubitza

web/username_prefix.php: remove padding used to visually separate elements: documented that this also removes a leading __ that indicates an internal field

14120 07/17/2014 07:18 PM Aaron Marcuse-Kubitza

web/links/index.htm: updated to Firefox bookmarks: Quick links: added VegBIEN data dictionary spreadsheet, TNRS data dictionary.

14119 07/17/2014 06:15 PM Aaron Marcuse-Kubitza

fix: web/username_prefix.php: transposes: changed recommended syntax to y~x@url so that _y~ lines up vertically with [y] paths

14118 07/17/2014 06:11 PM Aaron Marcuse-Kubitza

web/username_prefix.php: removed special category comments syntax because this is now handled by transposes and insertion comments

14117 07/17/2014 06:10 PM Aaron Marcuse-Kubitza

web/username_prefix.php: added support for transposes ( y~x_@url -> x_y@url , Y~x@url -> xY@url ), which can be used to put the category in a column name first without duplicating the category

14116 07/17/2014 05:35 PM Aaron Marcuse-Kubitza

web/username_prefix.php: removed linewraps code because Google spreadsheets no longer supports wrapping on a - , and because a shorter syntax for category comments is now available