Openbravo Issue Tracking System - Openbravo ERP | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0046377 | Openbravo ERP | A. Platform | public | 2021-04-27 20:53 | 2021-06-08 15:55 | |||||||
| Reporter | shuehner | |||||||||||
| Assigned To | platform | |||||||||||
| Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | PR21Q3 | ||||||||||
| Merge Request Status | approved | |||||||||||
| Review Assigned To | ||||||||||||
| 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 | 0046377: Errors during create.database with PostgreSQL 14: ERROR: syntax error at or near "'plpgsql'" | |||||||||||
| Description | Running create.database with a PostgreSQL 14 (unreleased) daily build fails applying the prescript-PostgreSQL.sql file: [createdatabase] 7744 [main] INFO org.openbravo.ddlutils.task.CreateDatabase - Executing script prescript-PostgreSql.sql [createdatabase] 7760 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - SQL Command failed with: ERROR: syntax error at or near "'plpgsql'" [createdatabase] Position: 116 [createdatabase] 7760 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - -- END [createdatabase] [createdatabase] CREATE OR REPLACE FUNCTION insert_pg_language() [createdatabase] RETURNS integer AS ' [createdatabase] CREATE TRUSTED PROCEDURAL LANGUAGE ''plpgsql'' [createdatabase] HANDLER plpgsql_call_handler [createdatabase] VALIDATOR plpgsql_validator; [createdatabase] SELECT 1; [createdatabase] ' LANGUAGE 'sql' [createdatabase] 7763 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - SQL Command failed with: ERROR: function insert_pg_language() does not exist [createdatabase] Hint: No function matches the given name and argument types. You might need to add explicit type casts. [createdatabase] Position: 125 [createdatabase] 7764 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - -- END [createdatabase] [createdatabase] CREATE OR REPLACE FUNCTION create_language(varchar) [createdatabase] RETURNS integer AS ' [createdatabase] SELECT [createdatabase] CASE WHEN exist_language($1)=0 [createdatabase] THEN insert_pg_language() [createdatabase] END; [createdatabase] SELECT 1; [createdatabase] ' LANGUAGE 'sql' [createdatabase] 7769 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - SQL Command failed with: ERROR: function create_language(unknown) does not exist [createdatabase] Hint: No function matches the given name and argument types. You might need to add explicit type casts. [createdatabase] Position: 23 [createdatabase] 7770 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - -- END [createdatabase] [createdatabase] SELECT * FROM create_language('plpgsql') [createdatabase] 8013 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - SQL Command failed with: ERROR: function insert_pg_language() does not exist [createdatabase] 8013 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - -- END [createdatabase] [createdatabase] DROP FUNCTION insert_pg_language() [createdatabase] 8014 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - SQL Command failed with: ERROR: function create_language(character varying) does not exist [createdatabase] 8014 [main] WARN org.apache.ddlutils.platform.PGStandardBatchEvaluator - -- END [createdatabase] [createdatabase] DROP FUNCTION create_language(varchar) [createdatabase] 8048 [main] INFO org.apache.ddlutils.platform.PGStandardBatchEvaluator - Executed 118 SQL command(s) with 5 error(s) in 298 ms | |||||||||||
| Steps To Reproduce | Install postgresql 14 development build For example using dev builds available from apt.postgresql.org source.list entry: https://apt.postgresql.org/pub/repos/apt [^] bullseye-pgdg-testing main 14 apt install postgresql-14 | |||||||||||
| Proposed Solution | ||||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2021-04-27 20:53 | shuehner | New Issue | ||||||||||
| 2021-04-27 20:53 | shuehner | Assigned To | => platform | |||||||||
| 2021-04-27 20:53 | shuehner | OBNetwork customer | => No | |||||||||
| 2021-04-27 20:53 | shuehner | Modules | => Core | |||||||||
| 2021-04-27 20:53 | shuehner | Triggers an Emergency Pack | => No | |||||||||
| 2021-04-27 20:53 | shuehner | Relationship added | blocks 0046376 | |||||||||
| 2021-04-27 21:22 | shuehner | Note Added: 0127600 | ||||||||||
| 2021-04-27 21:42 | hgbot | Merge Request Status | => open | |||||||||
| 2021-04-27 21:42 | hgbot | Note Added: 0127601 | ||||||||||
| 2021-06-08 15:51 | hgbot | Merge Request Status | open => approved | |||||||||
| 2021-06-08 15:51 | hgbot | Note Added: 0129201 | ||||||||||
| 2021-06-08 15:51 | hgbot | Resolution | open => fixed | |||||||||
| 2021-06-08 15:51 | hgbot | Status | new => closed | |||||||||
| 2021-06-08 15:51 | hgbot | Fixed in Version | => PR21Q3 | |||||||||
| 2021-06-08 15:51 | hgbot | Note Added: 0129202 | ||||||||||
| 2021-06-08 15:55 | shuehner | Note Added: 0129203 | ||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||