Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0028684 | Openbravo ERP | Y. DBSourceManager | public | 2015-01-20 10:18 | 2015-08-10 15:32 |
|
Reporter | shuehner | |
Assigned To | alostale | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0PR15Q2 | |
Merge Request Status | |
Review Assigned To | shuehner |
OBNetwork customer | No |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0028684: Doing pg_dump+pg_restore + export.database leads to a few check constraint being exported wrongly |
Description | Doing this sequence of steps on a postgresl 9.3 or 9.4 server
a.) ant install.source
b.) pg_dump
c.) drop+recreate the db
d.) pg_restore
e.) dbconsistency check / ant install.source
Gets that step e.) to show inconsistencies in some check constraints + also leads that install.source to fail because of those wrongly exported check constraints.
As that sequence of steps is needed for both
1.) 9.1 > 9.3 migration
2.) any backup+restore in 9.3
that is a major problem. |
Steps To Reproduce | a.) ant install.source
b.) pg_dump
c.) drop+recreate the db
d.) pg_restore
e.) dbconsistency check / ant install.source |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0030397 | 3.0PR15Q4 | closed | alostale | DB inconsistencies in PG9.5 (alpha1) |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-01-20 10:18 | shuehner | New Issue | |
2015-01-20 10:18 | shuehner | Assigned To | => alostale |
2015-01-20 10:18 | shuehner | OBNetwork customer | => No |
2015-01-20 10:18 | shuehner | Modules | => Core |
2015-01-20 10:18 | shuehner | Triggers an Emergency Pack | => No |
2015-01-20 12:44 | alostale | Issue Monitored: alostale | |
2015-01-20 13:56 | alostale | Note Added: 0073643 | |
2015-01-20 14:15 | alostale | Note Added: 0073644 | |
2015-01-20 14:16 | alostale | Review Assigned To | => shuehner |
2015-01-21 09:00 | hgbot | Checkin | |
2015-01-21 09:00 | hgbot | Note Added: 0073671 | |
2015-01-21 09:00 | hgbot | Status | new => resolved |
2015-01-21 09:00 | hgbot | Resolution | open => fixed |
2015-01-21 09:00 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/b44f867c1a6b464b78b6954647ad130e0ad00a29 [^] |
2015-01-21 09:00 | hgbot | Checkin | |
2015-01-21 09:00 | hgbot | Note Added: 0073672 | |
2015-01-21 09:00 | hgbot | Checkin | |
2015-01-21 09:00 | hgbot | Note Added: 0073673 | |
2015-01-21 09:00 | hgbot | Checkin | |
2015-01-21 09:00 | hgbot | Note Added: 0073674 | |
2015-01-21 09:00 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/b44f867c1a6b464b78b6954647ad130e0ad00a29 [^] => http://code.openbravo.com/erp/devel/dbsm-main/rev/d7ad35ef4c3628b182059f84f96afdde740a6fe0 [^] |
2015-01-26 14:15 | hgbot | Checkin | |
2015-01-26 14:15 | hgbot | Note Added: 0073779 | |
2015-01-27 13:50 | hgbot | Checkin | |
2015-01-27 13:50 | hgbot | Note Added: 0073809 | |
2015-01-27 13:50 | hgbot | Checkin | |
2015-01-27 13:50 | hgbot | Note Added: 0073810 | |
2015-01-27 15:24 | hgbot | Checkin | |
2015-01-27 15:24 | hgbot | Note Added: 0073815 | |
2015-01-27 15:24 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/dbsm-main/rev/d7ad35ef4c3628b182059f84f96afdde740a6fe0 [^] => http://code.openbravo.com/erp/devel/pi/rev/0d3eae75816c97b1aacfd3161edb3965b49335c0 [^] |
2015-01-30 08:52 | hgbot | Checkin | |
2015-01-30 08:52 | hgbot | Note Added: 0073927 | |
2015-02-04 20:34 | hudsonbot | Checkin | |
2015-02-04 20:34 | hudsonbot | Note Added: 0074169 | |
2015-02-04 20:34 | hudsonbot | Checkin | |
2015-02-04 20:34 | hudsonbot | Note Added: 0074184 | |
2015-02-04 20:34 | hudsonbot | Checkin | |
2015-02-04 20:34 | hudsonbot | Note Added: 0074185 | |
2015-02-09 19:41 | shuehner | Note Added: 0074295 | |
2015-02-09 19:41 | shuehner | Status | resolved => closed |
2015-02-09 19:41 | shuehner | Fixed in Version | => 3.0PR15Q2 |
2015-07-22 08:32 | alostale | Relationship added | related to 0030397 |
2015-08-10 15:32 | hgbot | Checkin | |
2015-08-10 15:32 | hgbot | Note Added: 0079291 | |
Notes |
|
|
The differences appear for check constraints in character varying columns, restoring DB adds extra casting in this case. |
|
|
|
patch sent to try to test in pg 8.4, 9.1, 9.3 and 9.4 |
|
|
(0073671)
|
hgbot
|
2015-01-21 09:00
|
|
Repository: erp/devel/pi
Changeset: b44f867c1a6b464b78b6954647ad130e0ad00a29
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jan 20 15:59:49 2015 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b44f867c1a6b464b78b6954647ad130e0ad00a29 [^]
fixed bug 28684: incorrect check constraint export in pg 9.3 and 9.4
The differences appear for check constraints in character varying columns,
restoring DB adds extra casting in this case.
The fix takes care of these cases.
---
M src-db/database/lib/dbsourcemanager.jar
---
|
|
|
(0073672)
|
hgbot
|
2015-01-21 09:00
|
|
|
|
(0073673)
|
hgbot
|
2015-01-21 09:00
|
|
Repository: erp/devel/dbsm-main
Changeset: 174a679ada78fc278771795604f75cef6b40a106
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jan 20 13:55:56 2015 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/174a679ada78fc278771795604f75cef6b40a106 [^]
related to bug 28684: prevent "assign parameter" waning when doing translations
It also makes easier to debug.
---
M src/org/apache/ddlutils/translation/CombinedTranslation.java
---
|
|
|
(0073674)
|
hgbot
|
2015-01-21 09:00
|
|
Repository: erp/devel/dbsm-main
Changeset: d7ad35ef4c3628b182059f84f96afdde740a6fe0
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jan 20 15:49:56 2015 +0100
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/d7ad35ef4c3628b182059f84f96afdde740a6fe0 [^]
fixed bug 28684: incorrect check constraint export in pg 9.3 and 9.4
The differences appear for check constraints in character varying columns,
restoring DB adds extra casting in this case.
The fix takes care of these cases.
---
M src/org/apache/ddlutils/platform/postgresql/PostgreSqlCheckTranslation.java
---
|
|
|
(0073779)
|
hgbot
|
2015-01-26 14:15
|
|
|
|
(0073809)
|
hgbot
|
2015-01-27 13:50
|
|
|
|
(0073810)
|
hgbot
|
2015-01-27 13:50
|
|
|
|
(0073815)
|
hgbot
|
2015-01-27 15:24
|
|
|
|
(0073927)
|
hgbot
|
2015-01-30 08:52
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Reviewed change reg-exp code related to check-constraints. To now also cover the new case of changing text-version of those after doing pg_dump/pg_restore in 9.3/9.4.
Also ran the newly created junit test-cases which cover this expected case + also some other simple+complex check constraint conditions on the following configurations:
- pgsql 8.4.22
- pgsql 9.1.14.
- pgsql 9.3.5
- pgsql 9.4
- oracle 11gr2
Note: pg 9.0 + 9.2 not explicitly tested but those were also never a recommended version. |
|
|
(0079291)
|
hgbot
|
2015-08-10 15:32
|
|
Repository: erp/devel/dbsm-main
Changeset: 5a8caa93da114c2407081ef191beb3fe81c67360
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Jul 22 09:32:02 2015 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/5a8caa93da114c2407081ef191beb3fe81c67360 [^]
related to bug 30397, related to bug 28684: DB inconsistencies in PG9.5
Ignoring test cases created for issue 0028684 because they do not apply anymore.
Now code for checks are read differently so the modifications previously tested
don't apply anymore.
---
M src-test/src/org/openbravo/dbsm/test/model/CheckConstraints.java
---
|
|