[open-ils-commits] [GIT] Evergreen ILS branch rel_3_2 updated. 7c78a3730b11025d109cb294f6b2b7ce81c2a106

Evergreen Git git at git.evergreen-ils.org
Wed Apr 24 15:46:51 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_2 has been updated
       via  7c78a3730b11025d109cb294f6b2b7ce81c2a106 (commit)
       via  c5565a3d02dde7c7281817bb7bfeab6855308a1c (commit)
       via  65a11283b628b5cb0b147dd897f1cad276d6553c (commit)
      from  35cf8413a230b6581571f3f026fdad119a2e593d (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 7c78a3730b11025d109cb294f6b2b7ce81c2a106
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 460735907f..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 ('1158', :eg_version); -- bshum/stompro/csharp
+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 c5565a3d02dde7c7281817bb7bfeab6855308a1c
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 65a11283b628b5cb0b147dd897f1cad276d6553c
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