<div dir="ltr">Hi all,<div>I have a problem upgrading 4.8.6 -> 4.9.1</div><div>When I start Midpoint after DB and binary upgrades I get long list including the following exception:</div><div><br>2025-02-14 18:24:09,119 [REPOSITORY] [midPointScheduler_Worker-2] ERROR (com.evolveum.midpoint.repo.common.activity.run.processing.ItemProcessingGatekeeper): Validity scan (COMBINED) of object UserType:SLi****ch (Se***i Li****ch, ff7a9109-377b-4f04-849f-a5204c732835) failed: Caught PSQLException for insert into m_shadow_partition_def (resourceOid, partition, attached, "table")<br>values (?, ?, ?, ?)<br>com.evolveum.midpoint.util.exception.SystemException: Caught PSQLException for insert into m_shadow_partition_def (resourceOid, partition, attached, "table")<br>values (?, ?, ?, ?)<br>        at com.evolveum.midpoint.repo.sqale.SqaleServiceBase.handledGeneralException(SqaleServiceBase.java:110)<br>        at com.evolveum.midpoint.repo.sqale.SqaleRepositoryService.modifyObject(SqaleRepositoryService.java:499)<br>Caused by: com.querydsl.core.QueryException: Caught PSQLException for insert into m_shadow_partition_def (resourceOid, partition, attached, "table")<br>values (?, ?, ?, ?)<br>        at com.querydsl.sql.DefaultSQLExceptionTranslator.translate(DefaultSQLExceptionTranslator.java:50)<br>        at com.querydsl.sql.Configuration.translate(Configuration.java:507)<br>        ... 79 common frames omitted<br>Caused by: org.postgresql.util.PSQLException: ERROR: permission denied: "RI_ConstraintTrigger_c_17360" is a system trigger<br>  Where: SQL statement "ALTER TABLE m_shadow_default DISABLE TRIGGER ALL;"<br>PL/pgSQL function m_shadow_create_partition() line 60 at EXECUTE<br>        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2733)<br>        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2420)<br>        ... 94 common frames omitted</div><div><br></div><div>Midpoint works with <br>psql (PostgreSQL) 14.15 (Ubuntu 14.15-1.pgdg22.04+1)</div><div><br></div><div>This happens only if I jump from latests 4.8 to 4.9. If I upgrade, for example, 4.8.5 to 4.8.6 I have no problems. </div><div><br></div><div>Could you advise how to solve this behavior?</div><div>Thanks in advance,</div><div>Yakov</div></div>