Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0052405 | Openbravo ERP | A. Platform | public | 2023-05-10 10:52 | 2023-05-10 13:25 | |||||||
Reporter | shuehner | |||||||||||
Assigned To | shuehner | |||||||||||
Priority | urgent | Severity | major | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | PR21Q3 | Fixed in Version | PR21Q3.8 | |||||||||
Merge Request Status | ||||||||||||
Review Assigned To | ||||||||||||
OBNetwork customer | ||||||||||||
Web browser | ||||||||||||
Modules | Core | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0052405: install.source fails with "DROP DATABASE cannot be executed within a pipeline" with postgres latest minor releases | |||||||||||
Description | Latest minor releases for PostgreSQL for major versions 11,12,13,14,15 include a change causing install.source to always fail. Specific PG versions including this change: 15.2, 14.7, 13.10, 12.14, and 11.19 Error message shown is: <workspace>/src-db/database/build-create.xml:104: org.postgresql.util.PSQLException: ERROR: DROP DATABASE cannot be executed within a pipeline Cause: In issue 45385 we added code to workaround an incompatibility of Amazon RDS (compared to standard PostgreSQL). Specifically adding an (optional) alter database owner change, just before the drop database. Postgres change https://git.postgresql.org/gitweb/?p=postgresql.git;a=commit;h=f48aa5df4e030ab75bdc2ca5fc480c4a830cf5f3 [^] now rejects some commands when being run in an already open transaction (and instead require an explicit commit) This bug-report from another project is hit by the same change: https://www.postgresql.org/message-id/4139340.1676050723%40sss.pgh.pa.us [^] discussion in there shows that is an intended behavior change (as that was just unsupported before, just not detected). So looks like we need to workaround this on our side. Note: This issue is triggered even when database does not exist (so nothing to drop). Just having the alter+drop in 1 transaction to be executed is enough to trigger the issue. | |||||||||||
Steps To Reproduce | Basline: postgresql 11 or higher in latest minor version (at least the ones specified above) ant install.source Observe it failing with error message specified above. | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2023-05-10 10:52 | shuehner | New Issue | ||||||||||
2023-05-10 10:52 | shuehner | Assigned To | => shuehner | |||||||||
2023-05-10 10:52 | shuehner | Modules | => Core | |||||||||
2023-05-10 10:52 | shuehner | Triggers an Emergency Pack | => No | |||||||||
2023-05-10 10:52 | shuehner | Issue generated from | 0051718 | |||||||||
2023-05-10 10:52 | shuehner | Relationship added | blocks 0051718 | |||||||||
2023-05-10 10:54 | shuehner | Note Added: 0149550 | ||||||||||
2023-05-10 10:54 | shuehner | Type | defect => backport | |||||||||
2023-05-10 11:16 | hgbot | Note Added: 0149551 | ||||||||||
2023-05-10 13:25 | hgbot | Resolution | open => fixed | |||||||||
2023-05-10 13:25 | hgbot | Status | new => closed | |||||||||
2023-05-10 13:25 | hgbot | Fixed in Version | => PR21Q3.8 | |||||||||
2023-05-10 13:25 | hgbot | Note Added: 0149559 | ||||||||||
2023-05-10 13:25 | hgbot | Note Added: 0149560 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|