Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0047694 | Openbravo ERP | Y. DBSourceManager | public | 2021-09-14 19:02 | 2021-10-07 12:34 |
|
Reporter | rbianchini | |
Assigned To | platform | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | | Fixed in Version | | |
Merge Request Status | approved |
Review Assigned To | |
OBNetwork customer | OBPS |
Web browser | |
Modules | Core |
Support ticket | 28495 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0047694: ERROR with materialed views |
Description | ERROR with materialized views, when an update.database is performed |
Steps To Reproduce | 1)Create a Materialized View in PgAdmin
2)Do a REFRESH MATERIALIZED in PgAdmin
3)Do a Select count in PgAdmin
4)Go to the terminal and do an export.database
5)Verify that they have been exported correctly
6)Do an update.database
7)Select the view to verify if it has data ( RESULT: it has not data).
8)Do steps 2 and 3 again
9)Do step 6 again
10)Select the view to verify if it has data ( RESULT: it has not data). |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | feature request | 0042042 | 3.0PR20Q1 | closed | AugustoMauch | Add support of materialized views |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2021-09-14 19:02 | rbianchini | New Issue | |
2021-09-14 19:02 | rbianchini | Assigned To | => platform |
2021-09-14 19:02 | rbianchini | OBNetwork customer | => OBPS |
2021-09-14 19:02 | rbianchini | Modules | => Core |
2021-09-14 19:02 | rbianchini | Support ticket | => 28495 |
2021-09-14 19:02 | rbianchini | Regression date | => 2021-09-30 |
2021-09-14 19:02 | rbianchini | Triggers an Emergency Pack | => No |
2021-09-14 19:03 | rbianchini | Note Added: 0131792 | |
2021-09-17 08:30 | ivancaceres | Issue Monitored: ivancaceres | |
2021-09-20 13:04 | cberner | Regression date | 2021-09-30 => |
2021-09-21 14:31 | alostale | Relationship added | related to 0042042 |
2021-09-30 18:55 | hgbot | Merge Request Status | => open |
2021-09-30 18:55 | hgbot | Note Added: 0132089 | |
2021-10-04 14:11 | lbressan | Note Added: 0132142 | |
2021-10-07 10:15 | hgbot | Note Added: 0132238 | |
2021-10-07 12:27 | hgbot | Merge Request Status | open => approved |
2021-10-07 12:28 | hgbot | Note Added: 0132250 | |
2021-10-07 12:34 | hgbot | Resolution | open => fixed |
2021-10-07 12:34 | hgbot | Status | new => closed |
2021-10-07 12:34 | hgbot | Note Added: 0132251 | |
2021-10-07 12:34 | hgbot | Note Added: 0132252 | |
Notes |
|
|
|
|
(0132089)
|
hgbot
|
2021-09-30 18:55
|
|
|
|
|
|
|
(0132238)
|
hgbot
|
2021-10-07 10:15
|
|
|
|
(0132250)
|
hgbot
|
2021-10-07 12:28
|
|
|
|
(0132251)
|
hgbot
|
2021-10-07 12:34
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/dbsm [^]
Changeset: 2b19852e5d4a77c01adff341e274e0ae035860e7
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 2021-10-07T12:31:37+02:00
URL: https://gitlab.com/openbravo/product/dbsm/-/commit/2b19852e5d4a77c01adff341e274e0ae035860e7 [^]
Fixes ISSUE-47694: Materialized views are needlessly recreated on update.database
Now a materialized view will only be recreated if:
Its definition has changed
Depends on any view
Depends on any other materialized view
Depends on a function that will be deleted/recreated
Depends on a table that is going to be updated on the current update.database run
---
A src-test/model/materializedViews/BASE_MODEL_UPDATED_BASE_TABLE.xml
A src-test/model/materializedViews/BASE_MODEL_UPDATED_MATERIALIZED_VIEW.xml
A src-test/model/materializedViews/BASE_MODEL_WITH_FUNCTION_DEPENDENCY.xml
A src-test/model/materializedViews/BASE_MODEL_WITH_FUNCTION_DEPENDENCY_2.xml
A src-test/model/materializedViews/BASE_MODEL_WITH_FUNCTION_DEPENDENCY_UPDATED.xml
A src-test/model/materializedViews/BASE_MODEL_WITH_MATERIALIZED_VIEW_DEPENDENCY.xml
A src-test/model/materializedViews/BASE_MODEL_WITH_VIEW_DEPENDENCY.xml
A src-test/src/org/openbravo/dbsm/test/model/recreation/MaterializedView.java
A src/org/apache/ddlutils/alteration/RemoveMaterializedViewChange.java
M src-test/model/materializedViews/DEPENDENCY.xml
M src-test/src/org/openbravo/dbsm/test/model/MaterializedViews.java
M src-test/src/org/openbravo/dbsm/test/model/ModelSuite.java
M src/org/apache/ddlutils/alteration/ModelComparator.java
M src/org/apache/ddlutils/model/MaterializedView.java
M src/org/apache/ddlutils/platform/ModelLoaderBase.java
M src/org/apache/ddlutils/platform/SqlBuilder.java
M src/org/apache/ddlutils/platform/oracle/OracleModelLoader.java
M src/org/apache/ddlutils/platform/postgresql/PostgreSqlModelLoader.java
---
|
|
|
(0132252)
|
hgbot
|
2021-10-07 12:34
|
|
|