Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0036916 | Openbravo ERP | Y. DBSourceManager | public | 2017-09-21 13:39 | 2018-01-03 12:38 | ||||||||||||||
Reporter | alostale | ||||||||||||||||||
Assigned To | caristu | ||||||||||||||||||
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.0PR18Q1 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | alostale | ||||||||||||||||||
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 | 0036916: PG10: update.database fails if there are DB sequences | ||||||||||||||||||
Description | If an instance running in PostgreSQL 10 contains sequences, update.database fails. | ||||||||||||||||||
Steps To Reproduce | 1. Copy attached C_MYSEQ.xml file to src-db/database/model/sequences 2. run ant update.database (OK this one just creates the sequence) 3. run ant update.database -> ERROR [java] 6119 ERROR - ERROR: column "min_value" does not exist [java] Position: 8 [java] org.postgresql.util.PSQLException: ERROR: column "min_value" does not exist [java] Position: 8 [java] at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2182) [java] at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1911) [java] at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:173) [java] at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:622) [java] at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:472) [java] at org.postgresql.jdbc.PgStatement.executeQuery(PgStatement.java:386) [java] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) [java] at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) [java] at org.apache.ddlutils.platform.ModelLoaderBase.readList(ModelLoaderBase.java:831) | ||||||||||||||||||
Proposed Solution | This is caused because in PostgreSQL 10 metadata for sequences is not stored anymore in the sequence itself but in a new pg_sequence table, see [1] and [2]. [1] https://github.com/postgres/postgres/commit/1753b1b027035029c2a2a1649065762fafbf63f3#diff-c92b082294555dab71dce6c00393f1c7 [^] [2] https://www.depesz.com/2017/02/06/waiting-for-postgresql-10-add-pg_sequence-system-catalog/ [^] | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=11088&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2017-09-21 13:39 | alostale | New Issue | |||||||||||||||||
2017-09-21 13:39 | alostale | Assigned To | => platform | ||||||||||||||||
2017-09-21 13:39 | alostale | OBNetwork customer | => No | ||||||||||||||||
2017-09-21 13:39 | alostale | Modules | => Core | ||||||||||||||||
2017-09-21 13:39 | alostale | Triggers an Emergency Pack | => No | ||||||||||||||||
2017-09-21 13:42 | alostale | Proposed Solution updated | |||||||||||||||||
2017-09-21 13:43 | alostale | File Added: C_MYSEQ.xml | |||||||||||||||||
2017-09-21 13:43 | alostale | Relationship added | blocks 0036911 | ||||||||||||||||
2017-09-21 13:43 | alostale | Status | new => acknowledged | ||||||||||||||||
2017-09-21 14:05 | alostale | Relationship added | related to 0028143 | ||||||||||||||||
2017-10-02 19:23 | caristu | Assigned To | platform => caristu | ||||||||||||||||
2017-10-02 19:23 | caristu | Status | acknowledged => scheduled | ||||||||||||||||
2017-10-05 16:12 | hgbot | Checkin | |||||||||||||||||
2017-10-05 16:12 | hgbot | Note Added: 0099776 | |||||||||||||||||
2017-10-05 16:18 | hgbot | Checkin | |||||||||||||||||
2017-10-05 16:18 | hgbot | Note Added: 0099777 | |||||||||||||||||
2017-10-05 16:18 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2017-10-05 16:18 | hgbot | Resolution | open => fixed | ||||||||||||||||
2017-10-05 16:18 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/1e4b3cd5380ef93703b356c4e81dcd56ab654a59 [^] | ||||||||||||||||
2017-10-05 16:18 | caristu | Review Assigned To | => alostale | ||||||||||||||||
2017-10-06 12:29 | alostale | Note Added: 0099792 | |||||||||||||||||
2017-10-06 12:29 | alostale | Status | resolved => closed | ||||||||||||||||
2017-10-06 12:29 | alostale | Fixed in Version | => 3.0PR18Q1 | ||||||||||||||||
2018-01-03 12:38 | hudsonbot | Checkin | |||||||||||||||||
2018-01-03 12:38 | hudsonbot | Note Added: 0101318 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|