Revision 13576
Added by Aaron Marcuse-Kubitza over 10 years ago
vegbien.sql | ||
---|---|---|
16808 | 16808 |
-- Name: SCHEMA "TNRS"; Type: COMMENT; Schema: -; Owner: - |
16809 | 16809 |
-- |
16810 | 16810 |
|
16811 |
COMMENT ON SCHEMA "TNRS" IS 'IMPORTANT: when changing this schema, you must also make the same changes on vegbiendev: |
|
16811 |
COMMENT ON SCHEMA "TNRS" IS ' |
|
16812 |
IMPORTANT: when changing this schema, you must also make the same changes on vegbiendev: |
|
16812 | 16813 |
on vegbiendev: |
16813 | 16814 |
# back up existing TNRS schema (in case of an accidental incorrect change): |
16814 | 16815 |
$ make backups/TNRS.backup-remake # runtime: 3 min ("real 2m44.277s") |
... | ... | |
16822 | 16823 |
$ rm=1 inputs/.TNRS/schema.sql.run |
16823 | 16824 |
# repeat until `svn di` shows no diff |
16824 | 16825 |
# back up new TNRS schema: |
16825 |
$ make backups/TNRS.backup-remake # runtime: 3 min ("real 2m44.277s")'; |
|
16826 |
$ make backups/TNRS.backup-remake # runtime: 3 min ("real 2m44.277s") |
|
16827 |
'; |
|
16826 | 16828 |
|
16827 | 16829 |
|
16828 | 16830 |
-- |
... | ... | |
17043 | 17045 |
-- Name: FUNCTION tnrs_populate_fields(); Type: COMMENT; Schema: TNRS; Owner: - |
17044 | 17046 |
-- |
17045 | 17047 |
|
17046 |
COMMENT ON FUNCTION tnrs_populate_fields() IS 'IMPORTANT: when changing this function, you must regenerate the derived cols: |
|
17048 |
COMMENT ON FUNCTION tnrs_populate_fields() IS ' |
|
17049 |
IMPORTANT: when changing this function, you must regenerate the derived cols: |
|
17047 | 17050 |
UPDATE "TNRS".tnrs SET "Name_submitted" = "Name_submitted" |
17048 | 17051 |
runtime: 30 min ("5564082 rows affected, 1918900 ms execution time") |
17049 | 17052 |
VACUUM ANALYZE "TNRS".tnrs -- to remove previous rows |
17050 |
runtime: 1.5 min ("92633 ms")'; |
|
17053 |
runtime: 1.5 min ("92633 ms") |
|
17054 |
'; |
|
17051 | 17055 |
|
17052 | 17056 |
|
17053 | 17057 |
SET search_path = geoscrub, pg_catalog; |
... | ... | |
17148 | 17152 |
-- Name: TABLE tnrs; Type: COMMENT; Schema: TNRS; Owner: - |
17149 | 17153 |
-- |
17150 | 17154 |
|
17151 |
COMMENT ON TABLE tnrs IS 'IMPORTANT: when changing this table''s schema, you may need to re-run TNRS: |
|
17152 |
$ inputs/.TNRS/data.sql.run refresh'; |
|
17155 |
COMMENT ON TABLE tnrs IS ' |
|
17156 |
IMPORTANT: when changing this table''s schema, you may need to re-run TNRS: |
|
17157 |
$ inputs/.TNRS/data.sql.run refresh |
|
17158 |
'; |
|
17153 | 17159 |
|
17154 | 17160 |
|
17155 | 17161 |
-- |
... | ... | |
17328 | 17334 |
-- Name: TABLE batch_download_settings; Type: COMMENT; Schema: TNRS; Owner: - |
17329 | 17335 |
-- |
17330 | 17336 |
|
17331 |
COMMENT ON TABLE batch_download_settings IS 'stores data from http://tnrs.iplantcollaborative.org/TNRSapp.html > Submit List > results section > Download settings > settings.txt'; |
|
17337 |
COMMENT ON TABLE batch_download_settings IS ' |
|
17338 |
stores data from http://tnrs.iplantcollaborative.org/TNRSapp.html > Submit List > results section > Download settings > settings.txt |
|
17339 |
'; |
|
17332 | 17340 |
|
17333 | 17341 |
|
17334 | 17342 |
-- |
... | ... | |
17347 | 17355 |
-- Name: TABLE client_version; Type: COMMENT; Schema: TNRS; Owner: - |
17348 | 17356 |
-- |
17349 | 17357 |
|
17350 |
COMMENT ON TABLE client_version IS 'contains svn revisions'; |
|
17358 |
COMMENT ON TABLE client_version IS ' |
|
17359 |
contains svn revisions |
|
17360 |
'; |
|
17351 | 17361 |
|
17352 | 17362 |
|
17353 | 17363 |
-- |
17354 | 17364 |
-- Name: COLUMN client_version.global_rev; Type: COMMENT; Schema: TNRS; Owner: - |
17355 | 17365 |
-- |
17356 | 17366 |
|
17357 |
COMMENT ON COLUMN client_version.global_rev IS 'from `svn info .` > Last Changed Rev'; |
|
17367 |
COMMENT ON COLUMN client_version.global_rev IS ' |
|
17368 |
from `svn info .` > Last Changed Rev |
|
17369 |
'; |
|
17358 | 17370 |
|
17359 | 17371 |
|
17360 | 17372 |
-- |
17361 | 17373 |
-- Name: COLUMN client_version."/lib/tnrs.py rev"; Type: COMMENT; Schema: TNRS; Owner: - |
17362 | 17374 |
-- |
17363 | 17375 |
|
17364 |
COMMENT ON COLUMN client_version."/lib/tnrs.py rev" IS 'from `svn info lib/tnrs.py` > Last Changed Rev'; |
|
17376 |
COMMENT ON COLUMN client_version."/lib/tnrs.py rev" IS ' |
|
17377 |
from `svn info lib/tnrs.py` > Last Changed Rev |
|
17378 |
'; |
|
17365 | 17379 |
|
17366 | 17380 |
|
17367 | 17381 |
-- |
17368 | 17382 |
-- Name: COLUMN client_version."/bin/tnrs_db rev"; Type: COMMENT; Schema: TNRS; Owner: - |
17369 | 17383 |
-- |
17370 | 17384 |
|
17371 |
COMMENT ON COLUMN client_version."/bin/tnrs_db rev" IS 'from `svn info bin/tnrs_db` > Last Changed Rev'; |
|
17385 |
COMMENT ON COLUMN client_version."/bin/tnrs_db rev" IS ' |
|
17386 |
from `svn info bin/tnrs_db` > Last Changed Rev |
|
17387 |
'; |
|
17372 | 17388 |
|
17373 | 17389 |
|
17374 | 17390 |
-- |
... | ... | |
17393 | 17409 |
-- Name: VIEW "taxon_scrub.scrubbed_unique_taxon_name.*"; Type: COMMENT; Schema: TNRS; Owner: - |
17394 | 17410 |
-- |
17395 | 17411 |
|
17396 |
COMMENT ON VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" IS 'scrubbed_family: Name_matched_accepted_family was missing from the TNRS results at one point, so Family_matched is used as a workaround to populate this. the workaround is for *accepted names only*, as no opinion names do not have an Accepted_name_family to prepend to the scrubbed name to parse.'; |
|
17412 |
COMMENT ON VIEW "taxon_scrub.scrubbed_unique_taxon_name.*" IS ' |
|
17413 |
scrubbed_family: Name_matched_accepted_family was missing from the TNRS results at one point, so Family_matched is used as a workaround to populate this. the workaround is for *accepted names only*, as no opinion names do not have an Accepted_name_family to prepend to the scrubbed name to parse. |
|
17414 |
'; |
|
17397 | 17415 |
|
17398 | 17416 |
|
17399 | 17417 |
-- |
Also available in: Unified diff
inputs/.TNRS/schema.sql: made COMMENTs start on their own line, using the steps at wiki.vegpath.org/Postgres_queries#make-COMMENTs-start-on-their-own-line