[open-ils-commits] [GIT] Evergreen ILS branch master updated. 45e18580716813d5f5e323f7122a53f60a541e6a

Evergreen Git git at git.evergreen-ils.org
Wed May 2 22:15:59 EDT 2018


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, master has been updated
       via  45e18580716813d5f5e323f7122a53f60a541e6a (commit)
      from  d8e092ac014beee99ca75224a7524d3c0f41690b (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 45e18580716813d5f5e323f7122a53f60a541e6a
Author: Kathy Lussier <klussier at masslnc.org>
Date:   Fri Mar 23 16:35:16 2018 -0400

    LP#1758426: Disable triggers before recalculating bib visibility
    
    Disabling triggers in the 3.0.2-3.0.3 upgrade script to speed up the
    recalculation of bib visibility. These are the same triggers that were
    disabled when performing a similar recalculation in the 2.12.6-3.0.0 upgrade
    script.
    
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>
    Signed-off-by: Ben Shum <ben at evergreener.net>

diff --git a/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql b/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql
index 74a7c01..6ca665d 100644
--- a/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql
+++ b/Open-ILS/src/sql/Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql
@@ -273,6 +273,18 @@ $f$ LANGUAGE PLPGSQL STABLE ROWS 1;
 
 COMMIT;
 
+\echo ---------------------------------------------------------------------
+\echo Updating visibility attribute vector for biblio.record_entry
+BEGIN;
+
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  a_marcxml_is_well_formed;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  aaa_indexing_ingest_or_delete;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  audit_biblio_record_entry_update_trigger;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  b_maintain_901;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  bbb_simple_rec_trigger;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  c_maintain_control_numbers;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  fingerprint_tgr;
+ALTER TABLE biblio.record_entry DISABLE TRIGGER  z_opac_vis_mat_view_tgr;
 
 UPDATE  biblio.record_entry
   SET   vis_attr_vector = biblio.calculate_bib_visibility_attribute_set(id)
@@ -289,3 +301,14 @@ UPDATE  biblio.record_entry
                 UNION
             SELECT id FROM biblio.record_entry WHERE source IS NOT NULL
         );
+
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  a_marcxml_is_well_formed;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  aaa_indexing_ingest_or_delete;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  audit_biblio_record_entry_update_trigger;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  b_maintain_901;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  bbb_simple_rec_trigger;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  c_maintain_control_numbers;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  fingerprint_tgr;
+ALTER TABLE biblio.record_entry ENABLE TRIGGER  z_opac_vis_mat_view_tgr;
+
+COMMIT;

-----------------------------------------------------------------------

Summary of changes:
 .../Pg/version-upgrade/3.0.2-3.0.3-upgrade-db.sql  |   23 ++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list