Prefer a metabib reingest that is not a single transaction features/2.4-to-2.7
authorDan Scott <dscott@laurentian.ca>
Sun, 7 Dec 2014 12:18:37 +0000 (07:18 -0500)
committerDan Scott <dscott@laurentian.ca>
Sun, 7 Dec 2014 12:18:37 +0000 (07:18 -0500)
At least this way we can keep the doors open for business while the reingest
goes on.

Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/sql/Pg/upgrade/conifer_2_4-to_2_7.sql

index cc63aa4..6683cdf 100644 (file)
@@ -25876,18 +25876,11 @@ COMMIT;
 \qecho
 \qecho '\\t'
 \qecho '\\o /tmp/reingest-2.4.1.sql'
-\qecho 'SELECT ''select metabib.reingest_metabib_field_entries('' || id || '');'' FROM biblio.record_entry WHERE NOT DELETED AND id > 0;'
+\qecho 'SELECT ''select metabib.reingest_metabib_field_entries('' || id || '', TRUE, FALSE, TRUE);'' FROM biblio.record_entry WHERE NOT DELETED AND id > 0;'
 \qecho '\\o'
 \qecho '\\t'
 \qecho
 
-\qecho This is a browse-only reingest of your bib records. It may take a while.
-\qecho You may cancel now without losing the effect of the rest of the
-\qecho upgrade script, and arrange the reingest later.
-\qecho .
-SELECT metabib.reingest_metabib_field_entries(id, TRUE, FALSE, TRUE)
-    FROM biblio.record_entry;
-
 -- Not running ARRAY_ACCUM() changes from example.reporter-extension.sql since these are
 -- not installed by default, but including a helpful note.