Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0039522 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | minor | have not tried | 2018-10-23 16:30 | 2018-10-29 11:20 | |||
Reporter | alostale | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0PR18Q2.3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | d9c5f934551a | ||||
Projection | none | ETA | none | Target Version | 3.0PR18Q2.3 | |||
OS | Any | Database | PostgreSQL | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | caristu | |||||||
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 | 0039522: PG 10: false local changes positive after restoring PG 9.3 dump | |||||||
Description | Having a PostgreSQL 10 or 11 database created from a dump obtained from 9.3, updata.database incorrectly detects local changes in DB structure. Workarround: execute 1st update with -Dforce=true parameter. | |||||||
Steps To Reproduce | 1. Install Openbravo (at least 18Q1) in PostgreSQL 9.3 (ie. Openbravo Appliance 14.04) 2. Do a pg_dump 3. Restore that pg_dump in a PostgreSQL 10 or 11 4. Run ant update.database -> ERROR: local changes detected | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0107570) hgbot (developer) 2018-10-25 10:40 |
Repository: erp/backports/3.0PR18Q2.3 Changeset: d9c5f934551a97a9757253db3edb93c1781193c6 Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Wed Oct 24 10:31:04 2018 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR18Q2.3/rev/d9c5f934551a97a9757253db3edb93c1781193c6 [^] fixed bug 39522: false local changes positive restoring PG 9.3 dump on PG 10 After restoring in PG 10 a DB dump taken in PG 9.3, first update.database run incorrectly detects local changes. This was caused by many new functions added in PG 10 to trigram extension, those functions were unnecessarily included in the model checksum used to check if there are local changes. Now those functions are excluded: as dbsm only supports plsql functions, we now filter out all the ones implemented by binary code, which is how typically extension functions are implemented. --- M src-db/database/model/prescript-PostgreSql.sql --- |
(0107632) caristu (viewer) 2018-10-29 11:20 |
Code reviewed + tested OK. |
![]() |
|||
Date Modified | Username | Field | Change |
2018-10-24 10:22 | alostale | Type | defect => backport |
2018-10-24 10:22 | alostale | Target Version | => 3.0PR18Q2.3 |
2018-10-25 10:40 | hgbot | Checkin | |
2018-10-25 10:40 | hgbot | Note Added: 0107570 | |
2018-10-25 10:40 | hgbot | Status | scheduled => resolved |
2018-10-25 10:40 | hgbot | Resolution | open => fixed |
2018-10-25 10:40 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR18Q2.3/rev/d9c5f934551a97a9757253db3edb93c1781193c6 [^] |
2018-10-29 11:20 | caristu | Note Added: 0107632 | |
2018-10-29 11:20 | caristu | Status | resolved => closed |
2018-10-29 11:20 | caristu | Fixed in Version | => 3.0PR18Q2.3 |
Copyright © 2000 - 2009 MantisBT Group |