Reserve room for system config.metabib_field values

Bug #1097399 reported by Dan Scott
24
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Evergreen
Fix Released
Medium
Unassigned
2.3
Fix Released
Medium
Unassigned
2.4
Fix Released
Medium
Unassigned

Bug Description

* Evergreen 2.3 and prior

Per http://list.georgialibraries.org/pipermail/open-ils-dev/2013-January/008747.html we should set the value of config.metabib_field_id_seq to something high enough that we can add new stock entries without causing upgrade conflicts.

So, something like changing Open-ILS/src/sql/Pg/950.data.seed-values.sql around 178 to read:

SELECT SETVAL('config.metabib_field_id_seq'::TEXT, 100, TRUE);

Changed in evergreen:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → 2.4.0-alpha
Revision history for this message
Dan Scott (denials) wrote :

For that matter, the same problem applies to:

SELECT SETVAL('permission.grp_tree_id_seq'::TEXT, (SELECT MAX(id) FROM permission.grp_tree));

SELECT SETVAL('permission.grp_penalty_threshold_id_seq'::TEXT, (SELECT MAX(id) FROM permission.grp_penalty_threshold));

SELECT SETVAL('permission.grp_perm_map_id_seq'::TEXT, (SELECT MAX(id) FROM permission.grp_perm_map));

Maybe we want to make the value 1000 instead of 100? Integers are cheap...

Revision history for this message
Bill Erickson (berick) wrote : Re: [Bug 1097399] Re: Reserve room for system config.metabib_field values

>
> Maybe we want to make the value 1000 instead of 100? Integers are
> cheap...
>

+1

--
Bill Erickson
| Senior Software Developer
| phone: 877-OPEN-ILS (673-6457)
| email: <email address hidden>
| web: http://esilibrary.com
| Equinox Software, Inc. / Your Library's Guide to Open Source

Revision history for this message
Alex Lazar (alex-lazar) wrote :

For the PK serial field, would it work to omit specifying the primary key altogether or use DEFAULT in the INSERT statement? The next one serially would be generated automatically.

Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-alpha1 → 2.4.0-beta
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-beta → 2.4.0-rc
Ben Shum (bshum)
Changed in evergreen:
milestone: 2.4.0-rc → none
Revision history for this message
Ben Shum (bshum) wrote :

Re-confirming this bug and forwarding a working branch by Dyrcona in another ticket: http://git.evergreen-ils.org/?p=working/Evergreen.git;a=shortlog;h=refs/heads/user/dyrcona/lp1178393

Ben Shum (bshum)
no longer affects: evergreen/2.2
Revision history for this message
Dan Wells (dbw2) wrote :

Pushed this commit (with bump to 1000) to help with wrapping up bug #1235497.

Changed in evergreen:
status: Confirmed → In Progress
assignee: nobody → Dan Wells (dbw2)
Revision history for this message
Dan Wells (dbw2) wrote :

Also, setting 'In Progress', as upgrade scripts forthcoming...

Revision history for this message
Dan Wells (dbw2) wrote :

Upgrade scripts are now added, marking as 'fix committed'. Thanks, all.

Changed in evergreen:
status: In Progress → Fix Committed
assignee: Dan Wells (dbw2) → nobody
milestone: none → 2.5.0-rc
Revision history for this message
Alex Lazar (alex-lazar) wrote :

Just for the record, I think my question in Comment #3 was narrowly focusing on the specific issue I originally encountered and missed the larger goal of this bug. Many thanks for addressing the issue!

Dan Wells (dbw2)
Changed in evergreen:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.