]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/support-scripts/regenerate_simple_rec_view.sql
LP#1718032 Patron merge honors group perms; no self-merge
[working/Evergreen.git] / Open-ILS / src / support-scripts / regenerate_simple_rec_view.sql
1 /*
2  * Copyright (C) 2009  Equinox Software, Inc.
3  * Mike Rylander <miker@esilibrary.com>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * as published by the Free Software Foundation; either version 2
8  * of the License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  */
16
17 --
18 -- This implements a fix, for now, for an ingest issue seemingly
19 -- caused by atomicity issues in the simple_record_update trigger.
20 --
21 -- Set this up to be run by cron on a regular basis -- daily or hourly,
22 -- depending on your reporting requirements -- in order to refresh the
23 -- Simple Record Extracts reporting source.
24 --
25
26 BEGIN;
27
28 SELECT reporter.enable_materialized_simple_record_trigger();
29 SELECT reporter.disable_materialized_simple_record_trigger(); 
30
31 COMMIT;
32