Closed gardellajuanpablo closed 2 years ago
So you can drop those indexes in your database manually if you like. As it says, it's not critical and only if you want to use partitioned CRLs.
Yes I know, I will try to provide a PR, although the workaround is very simple. Thanks!
Thanks. Closing this, looking forward to a PR.
PostgreSQL logs shows:
2023-09-07 09:03:48.196 EDT [16141] ERROR: syntax error at or near "ON" at character 25
2023-09-07 09:03:48.196 EDT [16141] STATEMENT: DROP INDEX crldata_idx3 ON CRLData
2023-09-07 09:03:48.198 EDT [16141] ERROR: syntax error at or near "ON" at character 25
2023-09-07 09:03:48.198 EDT [16141] STATEMENT: DROP INDEX crldata_idx4 ON CRLData
This syntax is wrong for PostgreSQL, there is no "ON tablename". But it does exist with MariaDB and MSSQL.
Prepared statement is in "modules/ejbca-ejb/src/org/ejbca/core/ejb/upgrade/UpgradeSessionBean.java", line 2228.
final Query dropCrlDataIndex = entityManager.createNativeQuery("DROP INDEX " + oldIndexName + " ON " + tableName);
SQL script "doc/sql-scripts/remove-index-ejbca.sql" entirely fails with PostgreSQL.
Can you create a new issue for that, this one is closed and is not about that remove index script. Unfortunately databases have not unified SQL, so some things need to be modified for different databases. If you open a new issue, we could at least document what you would change for postgres.
I created #350 for the SQL script. I can create another issue for UpgradeSessionBean.java if you want.
Absolutely, please create another issue for UpgradeSessionBean
Issue #415 created for UpgradeSessionBean.
I am testing upgrade and there is an issue during the upgrade. Reproduced using docker image version 7.4.3.2.