[open-ils-commits] [GIT] Evergreen ILS branch rel_3_3 updated. 9061f305f7c7dde4acf4f876e4ddcaeed9839c21
Evergreen Git
git at git.evergreen-ils.org
Wed Apr 24 15:46:52 EDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_3 has been updated
via 9061f305f7c7dde4acf4f876e4ddcaeed9839c21 (commit)
via 3209181efbd6887e505bd1903883f46785a96784 (commit)
via 7348a2db080d42115cfd66592a7f6762ba6d8080 (commit)
from be1d8530299c164befbe9b36c4220462539ef727 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 9061f305f7c7dde4acf4f876e4ddcaeed9839c21
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date: Wed Apr 24 15:41:49 2019 -0400
LP#1778940: stamp schema update
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql
index b236d92e96..f86dd17f9c 100644
--- a/Open-ILS/src/sql/Pg/002.schema.config.sql
+++ b/Open-ILS/src/sql/Pg/002.schema.config.sql
@@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps
BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1160', :eg_version); -- berick/dbwells
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1161', :eg_version); -- jboyer/stompro/gmcharlt
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql b/Open-ILS/src/sql/Pg/upgrade/1161.schema.ate_outputs_indexes.sql
similarity index 78%
rename from Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql
rename to Open-ILS/src/sql/Pg/upgrade/1161.schema.ate_outputs_indexes.sql
index be05e8e50d..61f9d23260 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/1161.schema.ate_outputs_indexes.sql
@@ -1,5 +1,5 @@
-- No transaction needed. This can be run on a live, production server.
-SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+SELECT evergreen.upgrade_deps_block_check('1161', :eg_version); -- jboyer/stompro/gmcharlt
CREATE INDEX CONCURRENTLY atev_template_output ON action_trigger.event (template_output);
CREATE INDEX CONCURRENTLY atev_async_output ON action_trigger.event (async_output);
commit 3209181efbd6887e505bd1903883f46785a96784
Author: Galen Charlton <gmc at equinoxinitiative.org>
Date: Wed Apr 24 15:37:06 2019 -0400
LP#1778940: (follow-up) create indexes concurrently during upgrade
This reduces potential for locking when run in a production
database, particularly if done outside of a full version upgrade.
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql
index a71030e8b4..be05e8e50d 100644
--- a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql
@@ -1,9 +1,6 @@
-BEGIN;
-
+-- No transaction needed. This can be run on a live, production server.
SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
-CREATE INDEX atev_template_output ON action_trigger.event (template_output);
-CREATE INDEX atev_async_output ON action_trigger.event (async_output);
-CREATE INDEX atev_error_output ON action_trigger.event (error_output);
-
-COMMIT;
+CREATE INDEX CONCURRENTLY atev_template_output ON action_trigger.event (template_output);
+CREATE INDEX CONCURRENTLY atev_async_output ON action_trigger.event (async_output);
+CREATE INDEX CONCURRENTLY atev_error_output ON action_trigger.event (error_output);
commit 7348a2db080d42115cfd66592a7f6762ba6d8080
Author: Jason Boyer <jboyer at library.in.gov>
Date: Thu Jun 28 14:36:27 2018 -0400
LP1778940: Add Indexes to ate.*_output
When there are many rows in action_trigger.event_output
simply ensuring referencial integrity can take an
unacceptably long time as Postgres has to make sure
that the output being deleted isn't referenced in
any of these 3 fields. Adding these indexes keeps
these checks always fast.
Signed-off-by: Jason Boyer <jboyer at library.in.gov>
Signed-off-by: Josh Stompro <stompro at stompro.org>
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
index 50fa9d65f0..69b365d3f8 100644
--- a/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
+++ b/Open-ILS/src/sql/Pg/400.schema.action_trigger.sql
@@ -276,6 +276,9 @@ CREATE TABLE action_trigger.event (
);
CREATE INDEX atev_target_def_idx ON action_trigger.event (target,event_def);
CREATE INDEX atev_def_state ON action_trigger.event (event_def,state);
+CREATE INDEX atev_template_output ON action_trigger.event (template_output);
+CREATE INDEX atev_async_output ON action_trigger.event (async_output);
+CREATE INDEX atev_error_output ON action_trigger.event (error_output);
CREATE TABLE action_trigger.event_params (
id BIGSERIAL PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql
new file mode 100644
index 0000000000..a71030e8b4
--- /dev/null
+++ b/Open-ILS/src/sql/Pg/upgrade/XXXX.schema.ate_outputs_indexes.sql
@@ -0,0 +1,9 @@
+BEGIN;
+
+SELECT evergreen.upgrade_deps_block_check('XXXX', :eg_version);
+
+CREATE INDEX atev_template_output ON action_trigger.event (template_output);
+CREATE INDEX atev_async_output ON action_trigger.event (async_output);
+CREATE INDEX atev_error_output ON action_trigger.event (error_output);
+
+COMMIT;
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +-
Open-ILS/src/sql/Pg/400.schema.action_trigger.sql | 3 +++
Open-ILS/src/sql/Pg/upgrade/1161.schema.ate_outputs_indexes.sql | 6 ++++++
3 files changed, 10 insertions(+), 1 deletion(-)
create mode 100644 Open-ILS/src/sql/Pg/upgrade/1161.schema.ate_outputs_indexes.sql
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list